doveadm fetch -u user@example.com 'uid text' mailbox INBOX

Category: Mail Servers & Postfix

doveadm fetch -u user@example.com 'uid text' mailbox INBOX

Print full messages from a mailbox

Dumps the requested fields for every matching message; `text` is the whole message and `uid` its ID, while `hdr.subject` or `date.sent` pull single parts. Respect user privacy. Narrow the search with keys like `since` or `from`.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.