[日常] imap协议读取邮件

前端之家收集整理的这篇文章主要介绍了[日常] imap协议读取邮件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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 //不解析邮件,展示出完整的邮件

  

猜你在找的PHP相关文章