mailproto
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mailproto [2006/10/18 12:15] – old revision restored andi | mailproto [2006/11/08 02:30] (current) – old revision restored 84.142.251.254 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Mailprotocol Example Sessions ====== | ||
| + | |||
| + | ===== SMTP ===== | ||
| + | |||
| + | * RFC: [[rfc> | ||
| + | * Port: '' | ||
| + | |||
| + | < | ||
| + | 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 < | ||
| + | C: RCPT To: me@example.com | ||
| + | S: 250 Cannot check < | ||
| + | C: DATA | ||
| + | S: 354 Enter message, ending with " | ||
| + | C: Subject: test | ||
| + | C: | ||
| + | C: This is the mailbody | ||
| + | C: . | ||
| + | S: 250 OK id=1BvZ31-0004kN-00 | ||
| + | C: QUIT | ||
| + | S: 221 server closing connection | ||
| + | </ | ||
| + | |||
| + | ===== POP3 ===== | ||
| + | |||
| + | * RFC: [[rfc> | ||
| + | * Port: '' | ||
| + | |||
| + | ===== IMAP ===== | ||
| + | |||
| + | * RFC: [[rfc> | ||
| + | * Port: '' | ||
| + | |||
| + | < | ||
| + | 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 " | ||
| + | RFC822.SIZE 4286 ENVELOPE ("Wed, 17 Jul 1996 02:23:25 -0700 (PDT)" | ||
| + | " | ||
| + | ((" | ||
| + | ((" | ||
| + | ((" | ||
| + | ((NIL NIL " | ||
| + | ((NIL NIL " | ||
| + | ("John Klensin" | ||
| + | "< | ||
| + | BODY (" | ||
| + | 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 < | ||
| + | S: Subject: IMAP4rev1 WG mtg summary and minutes | ||
| + | S: To: imap@cac.washington.edu | ||
| + | S: cc: minutes@CNRI.Reston.VA.US, | ||
| + | S: Message-Id: < | ||
| + | S: MIME-Version: | ||
| + | S: Content-Type: | ||
| + | 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 | ||
| + | </ | ||
