Hugo van der Kooij
hvdkooij at vanderkooij.org
Sun Aug 24 20:44:11 IST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Julian Field wrote:
> A Custom Function is used to calculate the value of a configuration
> setting for any particular message. The return value from the function
> is just the value you want to use as the value of the configuration
> setting. So if you used a custom function to work out the value of Spam
> Actions, then a valid return value might be "store deliver" for example.
> It is usually a string, except for settings that have a yes or no value.
> No = 0 and yes = 1.
> That's about all there is to it.
The odd thing is that I am looking into the GenericSpamScanner sample.
If I call the function from MailScanner like this:
Use Custom Spam Scanner = &SearchMalware
I was expecting it to behave differently from other functions. The
specific behaviour seems to be reserved for the actual function called
Another issue is error reporting. The only error you get at startup is
about the last line tht might be missing. But just about any mistake
will show that message. Can the error report be made more specific?
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the MailScanner