[Dovecot] lazy_expunge and moving messages
Hello,
testing the lazy_expunge plugin (with 2.0.5), I realized the following effect, which users may not expect/understand:
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.
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? I haven't looked into the plugin interface yet. Of course, if a user manually copies a message and deletes the source message later (maybe having the copy deleted inbetween...), the consequence may not be expected either...
Greetings, Lutz
-- Lutz Preßler Lutz.Pressler@SerNet.DE http://www.SerNet.DE/ SerNet Service Network GmbH, Bahnhofsallee 1b, D-37081 Göttingen Tel.: +49-551-370000-2, FAX: +49-551-370000-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
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..
On Thu, 14 Oct 2010, Timo Sirainen wrote:
On Fri, 2010-10-08 at 13:29 +0200, Lutz Preßler wrote:
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. I think that the lazy_expunge plugin is especially usefull for users not using Trash folders (of course, it helps against accidental deletions with Trash folders purged automatically on exit...). "move detection" should be optional, of course.
Lutz
participants (2)
-
Lutz Preßler
-
Timo Sirainen