30 Dec
2016
30 Dec
'16
4:32 p.m.
On 12/29/2016 10:23 PM, Michael Fox wrote:
But is there a way tell it all mailboxes for a user? For example, something like:
doveadm expunge -u user@domain mailbox ALL savedbefore 30d
try: doveadm expunge -u user@domain ALL savedbefore 30d
just like the example thats here: http://wiki2.dovecot.org/Tools/Doveadm/SearchQuery
I already tried that. Did you? For me, expunge returns an error that says the mailbox must be listed. Also, that example is for search, not expunge.
So, the original question remains: is there a way to specify all mailboxes for a user?
doveadm expunge -u <user> mailbox '*' savedbefore 30d
Are you sure you really want to do this? My server expunges Trash and Junk on a cycle, but reaching into other mailboxes seems iffy.