Other blocked content ruleset

Julian Field MailScanner at ecs.soton.ac.uk
Tue Dec 6 16:44:41 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----


On 6 Dec 2005, at 15:56, Drew Marshall wrote:

> On Tue, December 6, 2005 15:42, Julian Field wrote:
>> Sorry, there aren't any "Notify Senders Of" rules that you can split
>> this finely.
>> You would have to do this with a Custom Function looking at the
>> message properties and work out what rules it hit.
>
> Thanks for the reply Jules (Even if it wasn't the easy reply I  
> would have
> liked :-) )
>
> Time to roll my custom function sleeves up...

To start you off, you want to attach the Custom Function to "Notify  
Senders Of Other Blocked Content". In the $message object, look for  
the string
MailScanner::Config::LanguageValue($message, 'attachmenttoosmall')
in values(%{$message->{otherreports}})
giving you something like this:

my $lookfor = MailScanner::Config::LanguageValue($message,  
'attachmenttoosmall');
foreach my $search (values( %{$message->{otherreports}} )) {
   return 0 if $search =~ /$lookfor/i;
}
return 1;

Contributions for writing the hard bit for you are gratefully  
accepted :-)
- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.3 (Build 2932)

iQEVAwUBQ5W//Pw32o+k+q+hAQGfkggAjVMsXJSU4297RWrCFtvisNnFfRSpoI92
2t5Oj1Ikoci2Svl2f4VToAclJVbQzE0MJoKA6LN0N4WNxFjQ3yat4CiKNgvbz4mS
FWP/HfUHWxEI5mxl+p67qcac7S+waKxDO/EgMzxDDZlAHU/fNhQErmng0CMKjW6+
VTmEgbV+4fm3lncCnOiXokdMQbisLRmF13RukHhA+ROW2mVAQbcI6zE5/KSv2QZN
WvACSDxq9O6wxIcKvQ4nV8koxIIETt7iVwFcZ2B9C1yvlBBlvSW2dV+133d4/Trl
DEBGj1N37Cols7WUy37iNhjcqaHSU5Uim7od4ZwqAhbbOxZz+SoBdg==
=yEDD
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list