[Dovecot] dovecot expire doesn't work (?)

Timo Sirainen tss at iki.fi
Wed Oct 29 23:32:38 EET 2008


On Wed, 2008-10-29 at 20:14 +0100, LÉVAI Dániel wrote:
> > Running it again now would show that it's going to expunge it?
> Unfortunately not:
> # ls -lrt $USER/Maildir/.spamassassin.SPAM/cur/
> 1840 Oct 25 03:17:55 2008 1225137329.[...],W=1890,S=1840:2,S
> 1978 Oct 25 04:32:37 2008 1225137329.[...],W=2028,S=1978:2,S
..
> You see the oldest message is dated back four days from now, and no 
> matter if I run the expire-tool without the --test option, it won't 
> expunge them.

Ah, but expunge plugin works on "save dates", not by mtime. The save
date is cached to dovecot.index.cache file and it's always older or
equal to file's ctime. So use ls -lc instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081029/e626f4a0/attachment.bin 


More information about the dovecot mailing list