auto purging users 'spambox'

Ken Murchison murch at andrew.cmu.edu
Tue Apr 4 11:35:21 EDT 2006


Craig White wrote:
> On Tue, 2006-04-04 at 10:49 -0400, Ken Murchison wrote:
>> Craig White wrote:
>>> I've not gotten it to work from cyrus.conf so I am trying it from the
>>> command line and I can't seem to find the right string to identify.
>>>
>>> for example, my path would be
>>>
>>> /var/spool/imap/c/user/craig/SPAMBOX
>>>
>>> but none of these work...
>>>
>>> su - cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 7 user/*/SPAMBOX'
>>> su - cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 7 user/SPAMBOX'
>>> su - cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 7 */SPAMBOX'
>>>
>>> What's the magic here?
>> What version of Cyrus?  You might be better served to set the 
>> '/vendor/cmu/cyrus-imapd/expire' mailbox annotation and use cyr_expire(8).
> ----
> from Simon...
> 
> # rpm -q cyrus-imapd
> cyrus-imapd-2.2.12-3.RHEL4.1
> 
> off list some suggested user.*.SPAMBOX which indeed worked but I don't
> understand the difference between purge and expire I guess.

ipurge is older can delete messages based on date and/or size.

expire is newer and can only delete messages based on date, but also 
removes the deliver.db entries (for expiring Netnews articles).  It is 
also used for deleting "expunged but not yet removed" messages when 
using delayed expunge.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Info-cyrus mailing list