Re: automating sa-learn via cyrus mailbox?
Jon Dowland <dowland@gmail.com> wrote:
> Something simple like
>
> my $output = `sa-learn --spam Mail/spam/cur/* Mail/spam/new/*`;
> system "rm Mail/spam/cur/* Mail/spam/new/*";
> print $output unless $output =~ /Learnt from \d+ messages (\d+
> messages inspected)/;
>
> where the regexp is from the top of my head but is to stop needless
> cron emails. This wouldn't be necessary if
> http://bugs.debian.org/268035 was implemented.
from my crontab:
15 2 * * * /usr/bin/sa-learn --spam /var/mail/cweg/.SPAM/cur/ > /dev/null
only shows output if an error occures.
Christoph
Reply to: