protocole imap: log d'une session telnet
voici un petite connexion utilisant le protocole imap
En bleu, les textes que j'ai saisis.
En rouge, les textes reçus du serveur.
En vert, des commentaires pour donner quelques explications.
>telnet imap.iprelax.net 143 connection telnet sur le port 143 du serveur imap
Trying 216.167.107.199...
Connected to pop.hebergement-discount.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4 IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] albertine IMAP4 2.287
at Thu, 20 Dec 2001 19:05:55 +0100 (CET)
a001 login nicolas ****** login avec nom d'utilisateur/mot de passe
* CAPABILITY IMAP4 IMAP4REV1 NAMESPACE IDLE MAILBOX-REFERRALS SCAN SORT
THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND
a001 OK LOGIN completed
a002 select inbox on selectionne sa mailbox
* 2 EXISTS
* 2 RECENT
* OK [UIDVALIDITY 1008871592] UID validity status
* OK [UIDNEXT 3] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags
* OK [UNSEEN 1] first unseen message in /var/spool/mail/pop11529
a002 OK [READ-WRITE] SELECT completed
a002 FETCH 1 full on recupere les informations sur le message
* 1 FETCH (FLAGS (\Recent)
INTERNALDATE "20-Dec-2001 18:27:54 +0100" RFC822.SIZE 685 ENVELOPE
("Thu, 20 Dec 2001 18:27:53 +0100" "coucou" (
("iprelax.net" NIL "nicolas" "iprelax.net"))
(("iprelax.net" NIL "nicolas" "iprelax.net"))
(("iprelax.net" NIL "nicolas" "iprelax.net")) NIL NIL NIL NIL
"<3c221fa53c530b62@andira.wanadoo.fr> (added by andira.wanadoo.fr)")
BODY ("TEXT" "PLAIN" ("CHARSET" "US-ASCII")
NIL NIL "7BIT" 29 1))
a002 OK FETCH completed
a002 FETCH 1 BODY[TEXT] on recupere le contenu du message
* 1 FETCH (BODY[TEXT] {29}
ceci est un message de demo
)
* 1 FETCH (FLAGS (\Seen))
a002 OK FETCH completed
a002 logout on sort
* BYE albertine IMAP4rev1 server terminating connection
a002 OK LOGOUT completed
Connection closed by foreign host.
|