[Dovecot] lazy_expunge and moving messages

Timo Sirainen tss at iki.fi
Thu Oct 14 20:18:07 EEST 2010


On Fri, 2010-10-08 at 13:29 +0200, Lutz Preßler wrote:

> As moving messages from one folder to another has to be done by
> clients with the IMAP command sequence COPY STORE EXPUNGE, every moved
> message is also put into the "shadow folder" of the source folder.

Yeah..

> Maybe it's possible to extend the plugin to optionally hook into the COPY
> operation, remember it somewhere with the message (simply as special/
> configurable IMAP flag?), and then really expunge messages with this
> flag set. What do you think?

Tricky. Deleting messages is done by many clients by moving to Trash. In
such situation it's better to have the original messages in the original
mailbox, otherwise everything would end up in Trash. And of course, it's
not always called "Trash" but could be any one of the hundreds of names
in different languages..




More information about the dovecot mailing list