• [日常] 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 //不解析邮件,展示出完整的邮件体
    

      

  • 相关阅读:
    MYSQL 优化指南
    设计模式——依赖倒置原则实例(PHP实现)
    PHP开发笔记
    反射应用
    HMAC-SHA1算法签名及Authorization头认证
    PHP接口和抽象类的区别
    PHP 模板方法模式使用
    RSA JS 加密解密DEMO
    RSA加密解密(PHP Demo)
    【Spark调优】提交job资源参数调优
  • 原文地址:https://www.cnblogs.com/taoshihan/p/10439324.html
Copyright © 2020-2023  润新知