IMAP Command Builder
IMAP Commands
Build IMAP commands for mailbox management, search, messages and flags.
Usage guide & examples
Choose a command to see its purpose, arguments and example. Generate it below, then enter it in a connected IMAP client. Use a new tag for each command. LOGIN requires verified TLS.
FETCH can combine several items. BODY[] may set \Seen in a read-write mailbox; BODY.PEEK[] retrieves without setting it. MIME part and header retrieval also use PEEK. STORE changes flags; DELETE removes a mailbox; CLOSE/EXPUNGE can permanently remove messages marked \Deleted.
Processed locally. No input is uploaded or stored.
Scope
Enter commands in a connected IMAP client. Authenticate first where required; SEARCH/FETCH/STORE/COPY/CLOSE/EXPUNGE require a selected mailbox. Check the matching tag for OK, NO or BAD. UID commands use stable UIDs, not sequence numbers.
SEARCH v1 supports ASCII text. Non-ASCII mailbox names can be converted using the Modified UTF-7 tool.
Result
Where do I use this result?
Enter commands in a connected IMAP client. Authenticate first where required; SEARCH/FETCH/STORE/COPY/CLOSE/EXPUNGE require a selected mailbox. Check the matching tag for OK, NO or BAD. UID commands use stable UIDs, not sequence numbers.
IMAP connection guide