0

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?

3
  • using doveadm this is easy. For a user this question is better suited for Super User. Nov 23, 2022 at 12:56
  • 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 Nov 24, 2022 at 13:20
  • I restored the answer I wrote originally. I deleted it because I thought I misread your question. Nov 24, 2022 at 14:09

1 Answer 1

0

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.

1
  • Danger: That search query does not include a filter for messages flagged as deleted yet.
    – anx
    Nov 27, 2022 at 23:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .