cyrus and Spamassassin bayes rules
Robin M.
robin at primus.ca
Sun Apr 25 15:42:54 EDT 2004
On Sun, 25 Apr 2004, Dwight Tovey wrote:
> Robin M. said:
>
> >
> > Are there other people out there that have implemented this and what are
> > your methods ?
>
> I have a cron script that gets kicked off every night. It runs sa-learn
> on several cyrus folders, then turns around and runs 'ipurge' on the ones
> that need it. So, you could have something like this:
>
> ==========================================8<------------------------
> ...
> echo "spam dwight/Spam"
> /usr/bin/sa-learn --spam $SPOOLDIR/d/user/dwight/Spam/*.
> echo "ham dwight/Trash"
> /usr/bin/sa-learn --ham $SPOOLDIR/d/user/dwight/Trash/*.
> /usr/bin/sa-learn --rebuild
>
> su cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 14 user/dwight/Trash'
> su cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 1 user/dwight/Spam'
> ...
> ==========================================8<------------------------
>
> This deletes anything older than 2 weeks from my Trash folder, and
> anything older than 1 day from my Spam folder.
>
Thanks. that was a nice easy solution.
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list