You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Maximilian Mehnert <mm...@zedat.fu-berlin.de> on 2006/11/16 15:07:51 UTC

Re: Perl script to train the bayesian database with a whole imap tree

On Thu, 2006-11-16 at 12:17 +0100, Maximilian Mehnert wrote:
> Hello, everyone.
> 
> I just browsed the spamassassin wiki and googled a bit, because for
> quite some time I felt the need for a tool to train my bayesian database
> with a whole imap tree.
This is the same script again, much improved. It now uses body.peek in
order not to modify the \Seen flag and there is an option to learn from
a spam folder. 

> Being not able to find an adequate tool, I created the attached perl
> script which uses the Net::IMAP::Simple and Mail::SpamAssassin package
> to do just this without invoking other tools like fetchmail, mailsync,
> mailutil, etc.
> 
> Seems to work just fine for me.
> 
> Feel free to put it online somewhere and to modify it. 
> I would be glad to receive feedback and improvements :-)