[Dovecot] Purging Deleted Messages

Timo Sirainen tss at iki.fi
Mon Jun 2 22:06:05 EEST 2008


On Mon, 2008-06-02 at 13:48 -0500, bhayden at umn.edu wrote:
> On Jun 2 2008, Timo Sirainen wrote:
> 
> >Dovecot doesn't keep track of when flag changes have been done, so
> >there's no simple way to say "expunge messages which have been marked as
> >\Deleted after 7 days". With maildir you could check the file's ctime,
> >but with mbox there's just no way.
> 
> We were toying with the idea of modding Dovecot to write an 
> X-DeletedFlag-Changed-At header when deleting messages for exactly this 
> reason. What's your thought on this idea, Timo?

Be sure to add it to mbox_hide_headers[] and mbox_save_drop_headers[]
arrays in mbox-storage.c and hope that it doesn't exist in any of your
existing mails. :) Other than that there shouldn't be problems.

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


More information about the dovecot mailing list