[Dovecot] Trash expire plugin
Timo Sirainen
tss at iki.fi
Thu Jun 8 22:27:52 EEST 2006
On Thu, 2006-06-08 at 15:11 -0400, Mark E. Mallett wrote:
> On Thu, Jun 08, 2006 at 06:32:35PM +0300, Timo Sirainen wrote:
> > On Thu, 2006-06-08 at 17:33 +0300, Timo Sirainen wrote:
> > > 3) Add a new field to index file which contains the date when the
> > > message was copied. This could be done only for those Trash/Spam boxes
> > > so they don't waste space for other mailboxes. The problem with this is
> > > that it won't work if there are no index files. To overcome that problem
> > > the time could be stored in yet another place, such as maildir filename
> > > and some new mbox header. I don't see supporting those as worth the
> > > trouble though, so the fallback could be either the date index file is
> > > created or the messages' INTERNALDATE.
> >
> > Actually for maildir the time is in file's ctime, so that would be a
> > good fallback. For dbox I could add a new field if people think it is
> > useful (might be useful for other purposes also?).
>
> Are you saying you are using ctime for the INTERNALDATE (or as its
> fallback)? I would think mtime would be better for that, since it
> shouldn't change with a folder move or other non-data-altering
> manipulations.
mtime is already used for that.
> And that would leave ctime free for the fallback for the
> expiry clock: since it *does* change with a folder move, flag change,
> etc, it would match what people would expect. Unless I'm wrong :)
Exactly what I meant. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060608/2de19706/attachment.pgp
More information about the dovecot
mailing list