[Dovecot] exclude a folder for lazy expunge (move to trash)
Hello,
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?
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?
Any other idea not to duplicate these emails?
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 868887590 Fax: 868888337
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 ..
El 31/08/12 15:23, Timo Sirainen escribió:
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 ..
Sorry, I meant "doveadm expunge" (I always confuse these two commands)
which does affect lazy expunge
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337
participants (2)
-
Angel L. Mateo
-
Timo Sirainen