You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Felix Schwarz <Fe...@web.de> on 2005/01/06 14:15:43 UTC
Plugins modifying a message
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/ReadMsg?listName=users@spamassassin.apache.org&msgId=1833767
Is there a method to add any headers?
--
Felix Schwarz
Re: Plugins modifying a message
Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
Felix Schwarz wrote:
> 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/ReadMsg?listName=users@spamassassin.apache.org&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