zoukankan      html  css  js  c++  java
  • [日常] 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 //不解析邮件,展示出完整的邮件体
    

      

  • 相关阅读:
    js遍历table和gridview
    斑马条码打印机通过js post 打印
    两个数据库通过DataTable实现差异传输
    Python2.X 和 Python3.X的区别
    Python核心编程(2)—— 基础(续)
    Python核心编程—— 起步(续)
    a标签下的div,在浏览器, 怎么会跑到a标签外面?
    功能测试
    Markdown初使用
    UI分层中使用PageFactory
  • 原文地址:https://www.cnblogs.com/taoshihan/p/10439324.html
Copyright © 2011-2022 走看看