info about spam messages

Eric Wood eric at interplas.com
Fri Jun 11 14:24:32 CEST 2004


----- Original Message ----- 
From: "Tayfun ASKER"
> My question : is it possible to obtain header information of spam
> messages from bogofilter. when i call bogofilter as "bogofilter -l", it
> adds a single line to the syetem log. but that single line does not
> contain any useful information about tagged message.

bogofilter can add a X-Bogosity header to all emails:

:0fw
* < 20000
| bogofilter -u -e -p

:0e
{ EXITCODE=75 HOST }

then the very next rule you can test for that header and perform and action
(such as modifying /etc/mail/access):

:0c
* ^X-Bogosity: Yes
| alter_access

The 'c' means copy and process with all the other procmail stuff and maybe
deliver as usual.  alter_access is some script you'll have to write to parse
out the header stuff you want to use.

Most of the above is in the manpage of bogofilter.

-eric wood




More information about the Bogofilter mailing list