[Dovecot] Debugging doveadm expunge
Hi,
I'm a recent convert to dovecot, and in general it is all working fine.
However, I have a number of cron jobs set up to purge old messages from mailboxes. These don't seem to be doing what I would expect.
Is there any way of debugging this process? Some way of seeing what messages it's checking, and why each one matches or fails to match?
For example, I'm running this:
doveadm expunge -u andy mailbox "News Reports" savedbefore 90d
from the crontab of user 'andy'. I'd expect the specified folder to only contain 90 messages (I get one 'News Report' per day) but in actual fact there are 1428 in there!
Any advice would be appreciated.
Thanks
Andy
Il 08/04/2014 12:47, Andy Hawkins ha scritto:
Hi,
I'm a recent convert to dovecot, and in general it is all working fine.
However, I have a number of cron jobs set up to purge old messages from mailboxes. These don't seem to be doing what I would expect.
Is there any way of debugging this process? Some way of seeing what messages it's checking, and why each one matches or fails to match?
For example, I'm running this:
doveadm expunge -u andy mailbox "News Reports" savedbefore 90d
Try with:
doveadm search -u andy mailbox "News Reports" before 90d
there is a difference between savedbefore and before, with "search" instead of "expunge" you can see the result witout delete you email.
Ciao
Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz Cloud Email Hosting -> http://www.qboxmail.com @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
Hi,
In article <5343E1B5.1070300@skye.it>, Alessio Cecchi<alessio@skye.it> wrote:
Try with:
doveadm search -u andy mailbox "News Reports" before 90d
there is a difference between savedbefore and before, with "search" instead of "expunge" you can see the result witout delete you email.
Thanks, that seems to be it. I've changed all the cron jobs to use 'before' to see if that has the desired effect.
Thanks
Andy
participants (2)
-
Alessio Cecchi
-
Andy Hawkins