Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

imap常用命令示例

查看数: 3271 | 评论数: 6 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2015-10-15 14:33

正文摘要:

$ telnet imap.richinfo.cn 143 1 capability    2 login "hechengjin" "xxxxx" 3 noop 4 close 5 logout 5 list "" *   ----- 参数: "邮箱路径名" "邮箱名(可使用通 ...

回复

Qter 发表于 2020-8-12 19:26:50
IMAP command
openssl s_client -connect imap.163.com:993 -crlf
A0011 LOGIN 15313xx57@163.com xx
A002 LIST "" "*"
A003 SELECT INBOX
A004 FETCH 1 FULL
A005 FETCH 1 BODYSTRUCTURE
A006 FETCH 1 BODY[TEXT]
A007 FETCH 1 BODY[1]
A008 FETCH 1 BODY[1.1]
A009 FETCH 1 BODY[1.2]
A010 FETCH 1 BODY[2]
A011 LOGOUT

https://www.cnblogs.com/abiao/articles/3272549.html

Qter 发表于 2020-7-30 09:48:00
imap获取未读邮件数量--------139----------
1 capability   
2 login "15313153337@139.com" "xxx"
3 select inbox
* 35 EXISTS
* 1 RECENT
* OK [UNSEEN 35] Message 35 is first unseen
* OK [UIDVALIDITY 1] UIDs valid
* OK [UIDNEXT 2746] Predicted next UID
* FLAGS (\Answered \Seen \Deleted \Draft \Flagged)
* OK [PERMANENTFLAGS (\Answered \Seen \Deleted \Draft \Flagged)] Limited
4 OK [READ-WRITE] select completed


--------gmail----------
Qter 发表于 2020-1-27 15:04:15


telnet imap.163.com 143
* OK Coremail System IMap Server Ready(163com[10774b260cc7a37d26d71b52404dcf5c])
1 capability
* CAPABILITY IMAP4rev1 XLIST SPECIAL-USE ID LITERAL+ STARTTLS XAPPLEPUSHSERVICE
UIDPLUS X-CM-EXT-1
1 OK CAPABILITY completed
2 login "xxx" "xxx"
2 OK LOGIN completed
3 select INBOX
3 NO SELECT Unsafe Login. Please contact kefu@188.com for help
4 SELECT INBOX

java 发表于 2018-1-29 15:17:38
本帖最后由 java 于 2018-1-29 15:19 编辑

A3 uid fetch 1:* flag(size uid) 

3 UID fetch 1:* (FLAGS)


A1  uid fetch 1 body.peek(1)

A7 FETCH 1 (BODYSTRUCTURE)
jimu 发表于 2016-8-18 16:44:22
C6 XLIST "" "*"
* XLIST (\Inbox) "/" "INBOX"
* XLIST (\Drafts) "/" "&g0l6P3ux-"
* XLIST (\Sent) "/" "&XfJT0ZAB-"
* XLIST (\Trash) "/" "&XfJSIJZk-"
* XLIST (\Spam) "/" "&V4NXPpCuTvY-"
* XLIST () "/" "&dcVr0mWHTvZZOQ-"
* XLIST () "/" "2222"
* XLIST () "/" "3333"
* XLIST () "/" "666"
* XLIST () "/" "bigfolder"
* XLIST () "/" "&le6YmA-"
C6 OK XLIST Completed

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-22 23:23 , Processed in 0.062172 second(s), 23 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表