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 at 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..
Apparently Analagous Threads
- example-config mail_log plugin options
- Panic: file index-search-result.c .. assertion failed: (next_uid == mail->uid)
- problem with subscriptions=no and changed separator ?
- problem with POP3 mail location when using namespaces
- problem with virtual plugin/index files?