On 22.8.2012, at 11.01, Angel L. Mateo wrote:
I'm configuring lazy expunge plugin to act as a kind of backup of my user's emails.
I'm getting a little problem because a lot of my users use "move to trash" behaviour in their email client (most of them are using thunderbird which has no option to hide deleted messages and is a hassle working with mark as deleted with it). The problem combining move to trash with lazy expunge is that messages are stored in the expunge namespace twice, first when it was deleted from the original folder and the second when is deleted from the trash.
So... is there any way to exclude trash folder from lazy expunge plugin, so mails are stored in the expunge namespace only when they are deleted from their original folder and not from the trash?
Not right now. Maybe it could be automatically done when SPECIAL-USE is enabled and the deletion is from a \Trash mailbox.
Another idea... We are purging trash folders with a cron running "doveadm purge" commands. Is there any way to run this command disabling lazy expunge plugin?
doveadm purge shouldn't affect lazy expunge, but you can disable lazy_expunge by using something like doveadm -o mail_plugins=everything,except,lazy_expunge expunge ..