New Year's Resolution and new beta release

Julian Field MailScanner at ecs.soton.ac.uk
Thu Jan 4 22:36:51 CET 2007



Ken A wrote:
>
>
> Julian Field wrote:
>
>>
>> I have also figured out how to get the configuration system to call a 
>> ruleset from within a Custom Function. So if you want to handle some 
>> situations with a Custom Function, but then have that use a ruleset 
>> some of the time, you can now do it. It is something I never dreamed 
>> up when I was writing it, so it is pulling a stunt I never thought I 
>> would need. I have produced a stripped-down example of how to do it, 
>> and the code is in the 
>> /usr/lib/MailScanner/MailScanner/CustomFunctions directory, along 
>> with the other few examples I provide you to start from.
>>
>
> So, regarding Custom Functions in general:
>
> # Your function may be passed a "message" object...
> # If you want to find out what there is in a "message" object,
> # look at Message.pm as they are all listed there.
>
> Message.pm lists things like $spamreport (set by IsSpam) as well as 
> the things I'd expect to see available to a 'message object' (message 
> headers, body, etc).
>
> Does a 'message object' ever contain $spamreport?
> If so, then for which configuration options in MailScanner.conf could 
> I call a custom function that might have access to $spamreport?
Anything called after SpamChecks will have access to this. If you have a 
look in /usr/sbin/MailScanner for the WorkForHours function, in there 
you will find the message batch loop. Once the spam checks have been 
done, you'll see where the code goes next, and hence what will have the 
spamreport in it.
>
> Or am I missing the flow of things completely? :-(
>
> Thanks,
> Ken A.
> Pacific.Net
>
>>
>> Jules
>>
>

Jules

-- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list