[日常] imap协议读取邮件

2019-02-27 11:54:10来源:博客园 阅读 ()

新老客户大回馈,云服务器低至5折

telnet imap.sina.net 143
A01 LOGIN shihan@appdev.sinanet.com 密码
A02 list "" *				//列出邮件夹
* LIST () "/" "INBOX"
* LIST (\Drafts) "/" "&g0l6P1k5-"
* LIST (\Sent) "/" "&XfJT0ZAB-"
* LIST (\Trash) "/" "&XfJSIJZk-"
* LIST (\Junk) "/" "&V4NXPpCuTvY-"
* LIST () "/" "&ZTZSMHaEYlNTYQ-"
* LIST () "/" "&YhF2hGJTU2E-"
* LIST () "/" "&TwFOGpAad+U-"
* LIST () "/" "shihan11"
* LIST () "/" "&bUuL1Q-21"
* LIST () "/" "&bUuL1Q-22"
* LIST () "/" "&bUuL1Q-23"
* LIST () "/" "shihan11@&XfJT0ZAB-"
* LIST () "/" "shihan@&kK5O9g-"
* LIST () "/" "shihan@&XfJT0ZAB-"
* LIST () "/" "xxxxxx@&kK5O9g-"
* LIST () "/" "xxxxxx@&XfJT0ZAB-"
* LIST () "/" "test"
A03 Select INBOX			//选择收件箱
* 17488 EXISTS 				//总共
* 5087 RECENT               //未读
* OK [UIDVALIDITY 1] UID validity status
* OK [UIDNEXT 22874] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags
* OK [UNSEEN 12292] first unseen message in INBOX
A04 Search ALL 				//列出所有收件箱邮件的序列ID
17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488
A06 Fetch 1 full
A06 Fetch 1420 full
A07 Fetch 17374 rfc822 //不解析邮件,展示出完整的邮件体

  


原文链接:https://www.cnblogs.com/taoshihan/p/10439324.html
如有疑问请与原作者联系

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:苍了个天了~网站被挂马!

下一篇:第一次上线网页