[Mimedefang] README.SPAMASSASSIN

Andrzej Marecki amr at astro.uni.torun.pl
Fri Nov 14 04:20:08 EST 2003


David,

in MD ver. 2.38 tarball there is README.SPAMASSASSIN file which still says:

---------------

4) Use the function spam_assassin_is_spam in your filter_begin() function.
   For example, put this code in filter_begin():

    if (spam_assassin_is_spam()) {
        action_add_header("X-Spam-Warning", "SpamAssassin says this is SPAM");
    }

---------------

This is very misleading! action_add_header() should be put in filter_end
instead and protected with:

if (-s "./INPUTMSG" <= 100 * 1024) {}

against being invoked for huge pieces of mail.

I wrote you about this half a year ago (version 2.33 was the current one 
then). Maybe you could re-edit this paragraph before ver. 2.39 is 
released... ;-)

--
Andrzej



More information about the MIMEDefang mailing list