On Tue, September 14, 2010 09:41, Hans-Werner Friedemann wrote:
> Hi @ all
>
> i want to achieve a kind of auto-mass-import of eml-Files with sa-learn.
> The SPAM and HAM mails will be saved in different folders.
>
> Is it possible that sa-learn looks ervery 15 Minutes in these folders
> and imports
> all files, which are in there? (b.e. via cron)
>

I don't know about the .eml mail format... so you may need to do some
pre-processing on that... but I have the following simple script in my
cron:

sa-learn --spam "/home/user/.maildir/.Junk\ E-mail/new/" --showdots >
/dev/null 2>&1
rm -f /home/user/.maildir/.Junk\ E-mail/new/* > /dev/null 2>&1
sa-learn --spam "/home/user/.maildir/.Junk\ E-mail/cur/" --showdots >
/dev/null 2>&1
rm -f /home/user/.maildir/.Junk\ E-mail/cur/* > /dev/null 2>&1



Reply via email to