[Dovecot] expire-tool stops on first box with nothing to expire in it

Timo Sirainen tss at iki.fi
Sat Jul 28 20:34:35 EEST 2012


On 19.7.2012, at 4.24, Joseph Tam wrote:

> I previously observed that the "date.saved" field (tested by savedbefore)
> seems to be clustered around particular timestamps.
> 
> Dumping out this field using
> 
> 	doveadm -ftab fetch -A \
> 		"mailbox date.saved" \
> 		\( mailbox Trash OR mailbox Junk OR mailbox "Deleted Items" \)
> 
> it seems the timestamps do not actually correspond to when the client
> moves messages to their trash folder, but rather, to the time I query
> for it i.e. a query instantiates this value.   This timestamp is then
> retained.
> 
> In practice, if this query is done on a periodic interval (e.g. daily),
> the date.saved will be roughly correct, and is usable as an age test
> for expungement.
> 
> Is there a way to force this value to be cached when the client actually
> saves or moves a message?

Done for save: http://hg.dovecot.org/dovecot-2.1/rev/c598f76eeeed

Fixed copy: http://hg.dovecot.org/dovecot-2.1/rev/b13b8267999d

It still doesn't add it to cache if it's not already cached in both the source and destination mailbox, but usually it should be after initial doveadm run.


More information about the dovecot mailing list