发博文
冰雪塵埃

snowtty.blog.chinaunix.net

welcome to spamd@139.com blog   
个人资料
  • 博客访问:2894106
  • 博文数量:1117
  • 博客积分:11573
  • 博客等级:上将
  • 关注人气: 10
  • 注册时间:2005-04-13 20:06:53
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
imap cmd (2012-02-04 15:35)


To quickly test an imap server using telnet use:
telnet server 143
01 LOGIN username password
02 LIST "" *
03 SELECT mailbox

Line 02 shows you all available mailboxes.

To show the information about a mailbox:
04 STATUS mailbox (MESSAGES)
Between () you can place one or more of the following: MESSAGES, UNSEEN, RECENT UIDNEXT UIDVALIDITY

And one of the following commands to view the a message 1 is the first message * is wildcard for all:
05 FETCH 1 ALL # All IMAP headers
05 FETCH 1 FULL # Full headers and body info
05 FETCH 1 BODY # Body
05 FETCH 1 ENVELOPE # Envelope
05 FETCH * FULL # All email

To fully retrieve a message use:
06 UID fetch 1:1 (UID RFC822.SIZE FLAGS BODY.PEEK[])

博客推荐文章
  • IIS (2011-07-13 13:39:08)
  • ISDN (2010-12-29 14:01:07)
  • IRIS (2011-05-09 07:40:05)
  • this (2010-12-28 13:52:04)
  • miss (2011-03-17 15:08:04)
亲,您还没有登录,请[登录][注册]后再进行评论