What's the best way to integrate Bogofilter with Sendmail

Peter Bishop pgb at adelard.com
Thu May 29 08:57:19 CEST 2003


On 28 May 2003 at 15:02, printer at moveupdate.com wrote:

> I told users to use "isspam" and "notspam" to send corrections 
> to and the procmailrc has:
> :0
> * ^To:.*isspam
> { 
> VERBOSE=YES
> :0B
> * ? bogofilter -s -vv
> /home/second/dev/null
> VERBOSE=NO
> }


Suggest the spam or notspam is sent as an attachment
so the headers are not polluted.

The attachment(s) can be extracted using mime.get.rfc822 

:0H
* ^To:.*isspam
{
:0fw
| mime.get.rfc822

:0w
| bogofilter -s 
}

PS Should that be "-Ns" if it was falsely registered as nonspam
You have -Sn for the converse operation
-- 
Peter Bishop 
Adelard and Centre for Software Reliability, City University
Drysdale Building, 10 Northampton Square, London, EC1V 0HB
Tel: +44-20-7490-9467, Fax: +44-20-7490-9451
pgb at adelard.com, http://www.adelard.com/
pgb at csr.city.ac.uk, http://www.city.ac.uk/





More information about the Bogofilter mailing list