Ê×ÏÈÇë²Î¿´RFC 1939ÖнéÉܵÄPOP3ÃüÁî
Ò»°ãtelnet pop3Server 110ºó¾Í¿ÉÒÔÓÃÕâЩÃüÁîÁË£¬´óСд²»Ãô¸Ð£¬
²»°üÀ¨¿ÚÁî±¾Éí£¬×¢Òâ²»ÒªÈÿÚÁî»ØÏÔ£¬µÈÑé֤ͨ¹ýºóÔÙÔÊÐí»ØÏÔºÃÁË¡£
user username¡¡¡¡¡¡ ÈÏ¿É
pass password¡¡¡¡¡¡ ÈÏ¿É¡¡¡¡Ö´Ðгɹ¦Ôò״̬ת»»
apop name,digest¡¡¡¡ÈÏ¿É¡¡¡¡Ò»ÖÖ°²È«´«Êä¿ÚÁîµÄ°ì·¨£¬Ö´Ðгɹ¦µ¼
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ ÖÂ״̬ת»»£¬Çë²Î¼ûRFC 1321
stat¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡ÇëÇóserver»ØËÍÓÊÏäͳ¼Æ×ÊÁÏ£¬ÈçÓʼþÊý¡¢
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ Óʼþ×Ü×Ö½ÚÊý
uidl n¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡server·µ»ØÓÃÓÚ¸ÃÖ¸¶¨ÓʼþµÄΨһ±êʶ£¬
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ Èç¹ûûÓÐÖ¸¶¨£¬·µ»ØËùÓеÄ
list n¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡server·µ»ØÖ¸¶¨ÓʼþµÄ´óСµÈ
retr n¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡server·µ»ØÓʼþµÄÈ«²¿Îı¾
dele n¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡server±ê¼Çɾ³ý£¬quitÃüÁîÖ´ÐÐʱ²ÅÕæÕýɾ³ý
rset¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡³·ÏûËùÓеÄdeleÃüÁî
top n,m¡¡¡¡¡¡¡¡¡¡¡¡ ´¦Àí¡¡¡¡·µ»ØnºÅÓʼþµÄÇ°mÐÐÄÚÈÝ£¬m±ØÐëÊÇ×ÔÈ»Êý
noop¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡´¦Àí¡¡¡¡server·µ»ØÒ»¸ö¿Ï¶¨µÄÏìÓ¦
quit¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡clientÏ£Íû½áÊø»á»°¡£Èç¹ûserver´¦ÓÚ"´¦Àí"
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ ״̬£¬ÔòÏÖÔÚ½øÈë"¸üÐÂ"״̬£¬É¾³ýÄÇЩ±ê¼Ç
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ ³Éɾ³ýµÄÓʼþ¡£Èç¹ûserver´¦ÓÚ"ÈÏ¿É"״̬£¬
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ Ôò½áÊø»á»°Ê±server²»½øÈë"¸üÐÂ"״̬
¹ØÓÚapopÃüÁî
Èç¹ûclientʹÓÃuserÃüÁ¿ÚÁÊÇÃ÷ÎÄ¡£Ê¹ÓÃapopÃüÁîʱ£¬clientµÚÒ»´Î
ÓëserverÁ¬½Óʱ£¬serverÏòclient·¢ËÍÒ»¸öasciiÂëÎʺò£¬¸ÃÎʺòÓÉÒ»¸ö×Ö·û
´®×é³É£¬Ëü¶ÔÓÚÿ¸öclientµÄÁ¬½Ó¶¼ÊÇΨһµÄ£¬client°ÑËüµÄ´¿Îı¾¿ÚÁ¼Ó
µ½´Óserver½ÓÊÕµ½µÄ×Ö·û´®Ö®ºó£¬È»ºó¼ÆËã½á¹û×Ö·û´®µÄMD5ÕªÒª£¬client°Ñ
usernameºÍMD5ÕªÒª×÷ΪapopÃüÁîµÄ²ÎÊýÒ»Æð·¢ËͳöÈ¥¡£
telnet pop3Server 110
user username
pass ****
stat
list
retr 1
retr 2
...
dele 1
dele 2
...
quit