User Tools

Site Tools


mailproto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mailproto [2006/11/08 00:09]
84.142.251.254 removed
mailproto [2006/11/08 03:30] (current)
84.142.251.254 old revision restored
Line 1: Line 1:
 +====== Mailprotocol Example Sessions ======
 +
 +===== SMTP =====
 +
 +  * RFC: [[rfc>2821]]
 +  * Port: ''25''
 +
 +<code>
 +S:    220 sever ESMTP Exim 3.35 #1 Fri, 13 Aug 2004 12:11:17 +0200
 +C:    HELO myhostname
 +S:    250 imap Hello myhostname [192.168.0.145]
 +C:    MAIL From: me@example.com
 +S:    250 <me@example.com> is syntactically correct
 +C:    RCPT To: me@example.com
 +S:    250 Cannot check <me@example.com> at this time - please try later accepted unverified
 +C:    DATA
 +S:    354 Enter message, ending with "." on a line by itself
 +C:    Subject: test
 +C:
 +C:    This is the mailbody
 +C:    .
 +S:    250 OK id=1BvZ31-0004kN-00
 +C:    QUIT
 +S:    221 server closing connection
 +</code>
 +
 +===== POP3 =====
 +
 +  * RFC: [[rfc>1939]] [[rfc>2449]]
 +  * Port: ''110''
 +
 +===== IMAP =====
 +
 +  * RFC: [[rfc>3501]]
 +  * Port: ''143''
 +
 +<code>
 +S:   * OK IMAP4rev1 Service Ready
 +C:   a001 login mrc secret
 +S:   a001 OK LOGIN completed
 +C:   a002 select inbox
 +S:   * 18 EXISTS
 +S:   * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
 +S:   * 2 RECENT
 +S:   * OK [UNSEEN 17] Message 17 is the first unseen message
 +S:   * OK [UIDVALIDITY 3857529045] UIDs valid
 +S:   a002 OK [READ-WRITE] SELECT completed
 +C:   a003 fetch 12 full
 +S:   * 12 FETCH (FLAGS (\Seen) INTERNALDATE "17-Jul-1996 02:44:25 -0700"
 +      RFC822.SIZE 4286 ENVELOPE ("Wed, 17 Jul 1996 02:23:25 -0700 (PDT)"
 +      "IMAP4rev1 WG mtg summary and minutes"
 +      (("Terry Gray" NIL "gray" "cac.washington.edu"))
 +      (("Terry Gray" NIL "gray" "cac.washington.edu"))
 +      (("Terry Gray" NIL "gray" "cac.washington.edu"))
 +      ((NIL NIL "imap" "cac.washington.edu"))
 +      ((NIL NIL "minutes" "CNRI.Reston.VA.US")
 +      ("John Klensin" NIL "KLENSIN" "MIT.EDU")) NIL NIL
 +      "<B27397-0100000@cac.washington.edu>")
 +       BODY ("TEXT" "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "7BIT" 3028
 +       92))
 +S:    a003 OK FETCH completed
 +C:    a004 fetch 12 body[header]
 +S:    * 12 FETCH (BODY[HEADER] {342}
 +S:    Date: Wed, 17 Jul 1996 02:23:25 -0700 (PDT)
 +S:    From: Terry Gray <gray@cac.washington.edu>
 +S:    Subject: IMAP4rev1 WG mtg summary and minutes
 +S:    To: imap@cac.washington.edu
 +S:    cc: minutes@CNRI.Reston.VA.US, John Klensin <KLENSIN@MIT.EDU>
 +S:    Message-Id: <B27397-0100000@cac.washington.edu>
 +S:    MIME-Version: 1.0
 +S:    Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
 +S:
 +S:    )
 +S:    a004 OK FETCH completed
 +C:    a005 store 12 +flags \deleted
 +S:    * 12 FETCH (FLAGS (\Seen \Deleted))
 +S:    a005 OK +FLAGS completed
 +C:    a006 logout
 +S:    * BYE IMAP4rev1 server terminating connection
 +S:    a006 OK LOGOUT completed
 +</code>
  
mailproto.txt ยท Last modified: 2006/11/08 03:30 by 84.142.251.254