Automatically expire messages in imap folder

Dwight Tovey dwight at
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 ( 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 N. Tovey
email: dwight at
"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:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list