Răzvan Sandu
2013-Aug-08 10:00 UTC
[Dovecot] Please HELP: how to delete all messages older than X days
Pe 7 Aug 2013 11:35, Timo Sirainen a scris:>> Thank you, but doveadm expunge will ask for the mailbox name: >> >> [root at mail1 ~]# doveadm expunge -u john.doe at example.com ON >> 2013-08-07 doveadm(root): Fatal: expunge: To avoid accidents, >> search query must contain MAILBOX in all search branches > > Add: mailbox '*'Thank you, it works! May I use the same wildcard syntax ('*') when configuring the expire plugin? Something like: mail_plugins = $mail_plugins expire plugin { expire = * } or plugin { expire = '*' } ? Best regards, R?zvan -------------- next part -------------- A non-text attachment was scrubbed... Name: razvan_sandu.vcf Type: text/x-vcard Size: 424 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20130808/84852236/attachment.vcf>
Timo Sirainen
2013-Aug-12 14:27 UTC
[Dovecot] Please HELP: how to delete all messages older than X days
On 8.8.2013, at 13.00, R?zvan Sandu <razvan.sandu at mobexpert.ro> wrote:> Pe 7 Aug 2013 11:35, Timo Sirainen a scris: > >>> Thank you, but doveadm expunge will ask for the mailbox name: >>> >>> [root at mail1 ~]# doveadm expunge -u john.doe at example.com ON >>> 2013-08-07 doveadm(root): Fatal: expunge: To avoid accidents, >>> search query must contain MAILBOX in all search branches >> >> Add: mailbox '*' > > Thank you, it works! > > May I use the same wildcard syntax ('*') when configuring the expire > plugin? Something like: > > mail_plugins = $mail_plugins expire > > plugin { > expire = * > }It should work, but I'm not sure if it's actually all that helpful. Might be more work to keep updating the expire database than to simply go through all users.