Teching bogofilter by forwarding messages

Michal Wieja mwieja at poczta.onet.pl
Fri Dec 19 18:16:26 CET 2003


On Thursday 18 December 2003 19:54, Eric Wood wrote:
> Michal Wieja wrote:
> > 1. Does it matter that most of the e-mail software will not forward full
>
> e-mail header.
>
> I'm a newbie at this and asked the same question.  Users should forward the
> email as an attachemtn that way all header information is preserved.  One
> fellow here wrote a script to rip on the mime attachment before passing it
> on to bogofilter to retrain on.  Ripping the mime attachment out and
> undoing the subject line change would be cool to put in your pipe:
>
> message-is-spam: "|rip_mime| sed 's/[{SPAM|IUNSURE}]//g'
>
> |/usr/bin/bogofilter -Ns"
>
> message-is-ham: "|rip_mime| sed 's/[{SPAM|IUNSURE}]//g'
>
> |/usr/bin/bogofilter -Sn"
>
> If that works I'd like to do that too!
> -eric wood
>

Eric,

	yes it works like a charm now, for ripping mime I use python script I've 
posted here.

	thank you guys for great support.

	I'll let you know how it work in few weeks.

--
Michal Wieja





More information about the Bogofilter mailing list