[Mimedefang] README.SPAMASSASSIN
Andrzej Marecki
amr at astro.uni.torun.pl
Wed May 14 10:46:01 EDT 2003
README.SPAMASSASSIN 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.
--
Andrzej
--
-----------------------------------------------------------------------------
Andrzej Marecki |
Torun Centre for Astronomy | e-mail: amr at astro.uni.torun.pl
N. Copernicus University | WWW: http://www.astro.uni.torun.pl
ul. Gagarina 11 | tel: +48 56 6113032
PL-87-100 Torun, POLAND | fax: +48 56 6113009
-----------------------------------------------------------------------------
More information about the MIMEDefang
mailing list