[Dovecot] lazy expunge - how to unset deleted imap flag

Timo Sirainen tss at iki.fi
Mon Jul 27 03:07:45 EEST 2009


On Fri, 2009-07-10 at 11:49 +0200, Colo Colo wrote:
> Hello,
> I am using dovecot 1.1.13 in debian lenny with exim4 and I have
> Outlook 2007 clients. I have configured lazy expunge plugin.
> 
> User marks messages in INBOX for deletion then click "delete messages
> from server" then the messages are moved to .EXPUNGED
>  folder which is correct but they are still marked with IMAP deleted
> flag which is bad cause when user marks another messages
>  in INBOX for deletion and click again on "delete messages from
> server"  the messages which were in .EXPUNGE are gone forever.

This shouldn't really be happening. They're gone only if client issues
EXPUNGE command in the .EXPUNGED/INBOX mailbox. Is your Outlook really
doing that? (If so, I guess it opens all mailboxes and issues EXPUNGE
for them?.. And I guess you've also made .EXPUNGED/ visible to clients?)

> Is there any possibility to change this behavior i.e. instead from:
> move messages tagged for deletion to .EXPUNGE folder to: 
> move messages tagged for deletion to .EXPUNGE folder and UNSET deleted
> flag ?

Yes, this is probably a good idea in any case. Done:
http://hg.dovecot.org/dovecot-1.2/rev/45b110c8da62

Still I'd like to know what exactly was happening with you before, just
in case there's something else wrong in Dovecot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090726/1f0b468d/attachment.bin 


More information about the dovecot mailing list