Internet Message Access Protocol

  • transport layer service used: TCP
  • port number: 143

    Note: Each client command is prefixed with an identifier (typically a short alphanumeric string, e.g. A0001, A0002, etc.) called a "tag". A different tag is generated by the client for each command.

    Commands:

    Typical scenario:

    a001 LOGIN username password
    a002 SELECT inbox
    a003 FETCH 1:22 (FLAGS BODY[HEADER.FIELDS (DATE FROM SUBJECT)])
    a004 FETCH 22 (FLAGS BODY[TEXT])
    a005 FETCH 21 (FLAGS BODY[TEXT])
    a006 FETCH 20 (FLAGS BODY[TEXT])
    a007 COPY 22 test
    a008 STORE 21:22 +FLAGS (\Deleted)
    a009 SEARCH BODY test
    a010 SEARCH BODY test NOT FROM someaddr@somewhere.edu
    a011 FETCH 8,19 (BODY[HEADER.FIELDS (FROM SUBJECT)])
    a012 CLOSE
    a013 SELECT test
    a014 STATUS test (MESSAGES)
    a015 FETCH 1:2 (FLAGS BODY[HEADER.FIELDS (FROM SUBJECT)])
    a016 STORE 1:2 FLAGS (\Answered)
    a017 LOGOUT
    

    Please use this command line IMAP client to manually work with the IMAP protocol.

    Official information: Internet Mail Access Protocol.