S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: F00000000 STARTTLS
S: F00000000 OK Begin TLS negotiation now.
C: F00000001 CAPABILITY
S: * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE LITERAL+ AUTH=PLAIN AUTH=LOGIN
S: F00000001 OK Pre-login capabilities listed, post-login capabilities have more.
C: F00000002 AUTHENTICATE PLAIN AG95ZS5sYXJiaUBlbGxvbnJlLmNvbQBBZnVhT3llTGFyYmk4Nzkx
S: F00000002 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE NAMESPACE LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA] Logged in
C: F00000003 NAMESPACE
S: * NAMESPACE (("INBOX." ".")) NIL NIL
S: F00000003 OK Namespace completed (0.001 + 0.000 secs).
C: F00000004 LIST "" "INBOX" RETURN (SUBSCRIBED CHILDREN)
S: * LIST (\HasChildren) "." INBOX
S: F00000004 OK List completed (0.002 + 0.000 + 0.001 secs).
C: F00000005 LIST (SPECIAL-USE) "" "*" RETURN (SUBSCRIBED CHILDREN)
S: * LIST (\Subscribed \HasNoChildren \UnMarked \Junk) "." INBOX.spam
S: * LIST (\Subscribed \HasNoChildren \UnMarked \Archive) "." INBOX.Archive
S: * LIST (\Subscribed \HasNoChildren \UnMarked \Trash) "." INBOX.Trash
S: * LIST (\Subscribed \HasNoChildren \UnMarked \Sent) "." INBOX.Sent
S: * LIST (\Subscribed \HasNoChildren \UnMarked \Drafts) "." INBOX.Drafts
S: F00000005 OK List completed (0.001 + 0.000 secs).
C: F00000006 SELECT INBOX (CONDSTORE)
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $forwarded)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $forwarded \*)] Flags permitted.
S: * 307 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1501906871] UIDs valid
S: * OK [UIDNEXT 311] Predicted next UID
S: * OK [HIGHESTMODSEQ 499] Highest
S: F00000006 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
C: F00000007 UID SEARCH RETURN (ALL) SINCE 1-Jan-1970 SUBJECT amazon
S: * ESEARCH (TAG "F00000007") UID ALL 21,139
S: F00000007 OK Search completed (0.006 + 0.000 + 0.003 secs).