Angel L. Mateo
2012-Aug-22 08:01 UTC
[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
Timo Sirainen
2012-Aug-31 13:23 UTC
[Dovecot] exclude a folder for lazy expunge (move to trash)
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 ..