Score:0

Doveadm command for delete all emails on user filtered by subject

cn flag

I have a problem and I can't solve it with doveadm

I have an email that by mistake has more than 500,000 emails in the INBOX with a unique subject that is easy to isolate. blocked

With

doveadm search -u [email protected] SUBJECT blocked
f8ef401d6ad78f623d4b0000ea3e7c6d 101
f8ef401d6ad78f623d4b0000ea3e7c6d 104
f8ef401d6ad78f623d4b0000ea3e7c6d 108
. . .

I get, (I think), the list of messages that this subject has

I tried another approach but it doesn't work

doveadm -v expunge -u [email protected] INBOX SUBJECT blocked

As much as I read and reread the doveadm manual, I can't reach the happy ending.

Edited: Not work is this:

  • After running the command, emails with the subject are NOT deleted.
  • Id run a doveadm search -u [email protected] SUBJECT blocked I get the same list of emails with this subject.
anx avatar
fr flag
anx
Please [add the specific](https://serverfault.com/posts/1127198/edit) problem / error printed / logged instead of "doesn't work"
cn flag
@anx edited. Is correct now?
anx avatar
fr flag
anx
Wait, is that typo (missing space after -u argument) the actual command you used?
anx avatar
fr flag
anx
try `doveadm fetch -f tab -u [email protected] 'mailbox hdr.subject hdr.date' SUBJECT blocked` to verify what you are searching is indeed stored in INBOX
cn flag
`fetch: invalid option -- 'f' ` and not missing space `after -u argument` @anx
anx avatar
fr flag
anx
sorry, I gave you the wrong option order. the point was to use the fetch (in pace of search) command to have your search print additional columns, such as the mailbox of each search result.
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.