On Wed, 2010-09-29 at 12:51 -0300, Thiago Henrique wrote:
01 22 * * * root nice -n 19 /usr/bin/doveadm expunge -A mailbox SPAM BEFORE 60d 01 00 * * * root nice -n 19 /usr/bin/doveadm purge -A
Each doveadm command walks through the whole file system. Is there a way to run the two operations into a single walk? Does anyone have a suggestion that helps optimize this?
Currently there's no way to run multiple commands in one run. I was thinking about that though.. Maybe it could be something like:
doveadm -A < But there's the other thing that by using expire plugin you could
optimize the doveadm expunge -A so that it would only go through those
mailboxes that actually have something to expunge. But then you'd again
have to do a full purge -A run even if the above multi-command handling
was implemented.