Score:0

Dovecot expunge all emails marked as deleted regardless of folder

tc flag

I would have thought that this would be a FAQ but I haven't found a useful answer.

How do I expunge all email messages deleted using the email client regardless of which folder it's in?

in flag
using [`doveadm`](https://wiki.dovecot.org/Tools/Doveadm/Expunge) this is easy. For a user this question is better suited for [su].
Gary Stainburn avatar
tc flag
Thank you for coming back to me. I did think that doveadm was the answer, although I could not find any reference to help with the search criteria. Thank you for pointing me to Super User. I will look at that
in flag
I restored the answer I wrote originally. I deleted it because I thought I misread your question.
Score:0
in flag

From a quick glance at the manual, this should do it:

doveadm expunge ALL

This would affect all mailboxes.

To adapt an example from the search-query manual:

doveadm expunge mailbox-guid 44f68b13ce97044b837f000035ca9452 ALL

This would only affect a single mailbox.

anx avatar
fr flag
anx
**Danger:** That search query does not include a filter for messages flagged as deleted yet.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.