Purging spam mails

Phil Pennock info-cyrus-spodhuis at spodhuis.org
Mon Nov 6 08:00:33 EST 2006


On 2006-11-06 at 15:01 +0400, Rajeev R Veedu wrote:
> Could someone please tell me how I could delete all mails in every user's
> inbox.Spam folder if they are a week older? 

Are you dealing with a lot of users, or just a few?

If you're dealing with a relatively static list of users, then Cyrus
provides a way to do this with configuration.  If you have a lot of
users, then you'll need to get one of your programmers to modify the
tool described below to do what you want based on matching INBOX.Spam
for all users.

> Any support or guidance would be really appreciated.

Read the cyr_expire(8) man-page.  See what it says
/vendor/cmu/cyrus-imapd/expire should be set to on a folder.  Read
cyradm(1) and especially study "mboxconfig".

This should let you manually configure, for each folder, the expiry time
for messages.

-Phil


More information about the Info-cyrus mailing list