Automatically expire messages in imap folder

Dwight Tovey dwight at dtovey.net
Thu Jun 3 12:07:36 EDT 2004


Adi Linden said:
>> You can use 'ipurge' in a cron script.  I have my users put their spam
>> in
>> a "Spam" folder then have a nightly cron job run 'sa-learn' on it
>> followed
>> by:
>>  su cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 10 user/dwight/Spam'
>>
>> This deletes anything over 10 days old.
>
> What is 'sa-learn'?
>

It's for SpamAssassin (http://au.spamassassin.org/index.html). It
"teaches" SA about spam messages so that supposedly SA will catch them
automatically instead of user's having to drag them into the Spam mailbox.

    /dwight

-- 
Dwight N. Tovey
email: dwight at dtovey.net
web: http://www.dtovey.net/~dwight
-----------
"Unless someone like you cares a whole awful lot, nothing is going to get
better.  It's not."  "The Lorax" by Dr. Seuss

---
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