Hello all,
I'm currently evaluating CRM114 and DSPAM and want to know how they could improve the SpamAssassin filtering.
I already found Eugene's (Morozov) messages on this list (March-Mai 2004) but I would like to know if there are some new answers beside the one given in http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1833767
Is there a method to add any headers?
There's no actual method for a plugin to have SpamAssassin to safely add a header. I brought up the need for such a method when I corrected some code in the ClamAV plugin, and Justin made a comment about it in bugzilla.
Currently you can just add the header to the appropriate header hashes in the PerMsgStatus object. See the ClamAV plugin for an example.
I suggest that before your code adds a header, it checks to see if it already exists, and modifies the header name it is planning to add (say add a number to the end of it) before it adds the header. The chances of you running into a conflict now is slim, but such a mechanism will prevent headaches in the future.
Daryl