expunging all mailboxes

Tom Talpey tom at talpey.com
Fri Dec 30 14:32:37 UTC 2016


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 at domain mailbox ALL savedbefore 30d
>>
>> try:
>> doveadm expunge -u user at 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.



More information about the dovecot mailing list