This is a quick list of IMAP protocol commands. It is far from complete, but servers as a quick reference when i'm testing changes to my IMAP server.
This is a quick list of IMAP protocol commands. It is far from complete, but servers as a quick reference when i'm testing changes to my IMAP server.
A1 LOGIN username password
Values can be quoted to enclose spaces and special characters. A " must then be escape with a \
A1 LOGIN "username" "pass word"
A1 LIST "" *
A1 LIST INBOX *
A1 LIST "Archive" *
A1 CREATE INBOX.Archive.2012
A1 CREATE "To Read"
A1 DELETE INBOX.Archive.2012
A1 DELETE "To Read"
A1 RENAME "INBOX.One" "INBOX.Two"
A1 LSUB "" *
There are more flags than the ones listed
A1 STATUS INBOX (MESSAGES UNSEEN RECENT)
A1 SELECT INBOX
A1 FETCH 1:* (FLAGS)
A1 UID FETCH 1:* (FLAGS)
A1 FETCH 2 body[text]
A1 FETCH 2 all
A1 UID FETCH 102 (UID RFC822.SIZE BODY.PEEK[])
A1 CLOSE
A1 LOGOUT