doveadm search -u user@example.com mailbox INBOX subject "invoice"

Category: Mail Servers & Postfix

doveadm search -u user@example.com mailbox INBOX subject "invoice"

Find messages matching a search query

Returns the UIDs of messages matching criteria such as subject, from, or date, which is the safe way to preview what a move or expunge would touch. Combine with `doveadm fetch` to see the actual content.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.