telnet imap.139.com 143 #telnet命令访问imap服务器 端口号143
* OK RICHINFO System IMap Server Ready (caixuns[a23b08c3f4c6f94aec60b61edd245ed6
0923s])
A01 login {account}@139.com {password} #成功登上后,用login命令登录自己的账户和密码用空格间隔
A01 OK login completed
A02 LIST "" * #显示信箱列表
* LIST () "/" "INBOX"
* LIST (\Drafts) "/" "&g0l6P3ux-"
* LIST (\Sent) "/" "&XfJT0ZAB-"
* LIST (\Trash) "/" "&XfJSIJZk-"
* LIST (\Junk) "/" "&V4NXPpCuTvY-"
* LIST () "/" "&Xn9USmWHTvZZOQ-"
A02 OK LIST completed
A03 SELECT INBOX #选择收件箱
* 1317 EXISTS
* 700 RECENT
* OK [UIDVALIDITY 1] UIDs valid
* FLAGS (\Answered \Seen \Deleted \Draft)
* OK [PERMANENTFLAGS (\Answered \Seen \Deleted \Draft)] Limited
A03 OK [READ-WRITE] SELECT completed
A04 SEARCH ALL #查询所有邮件
* SEARCH 410 411 412 413 414 421 422 423 424 425 426 427 430 434 435 436 437 438
...
07 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317
A04 OK SEARCH completed
A05 SEARCH NEW #查询新邮件
* SEARCH 410 411 412 413 414 421 422 423 424 425 426 427 430 434 435 436 437 438
...
07 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317
A05 OK SEARCH completed
A06 Fetch 5 full #获取第5封邮件信息
* 5 FETCH (FLAGS (\Seen) ENVELOPE ("Wed, 3 Dec 2014 13:39:28 +0800" "=?GB2312?B?
w+bK1NH7x+s=?=" (("abcabc" NIL "abcabc" "163.cn")) NIL NIL (("cbacba" NIL "cbacba" "139.com")) NIL NIL "" "<<A href="mailto:2014120313392756509615@163">2014120313392756509615@163.cn>") INTERNALDATE "3-Dec-2014 13:41:46 +0800" BODY (("text" "plain" ("ch
arset" "GB2312") NIL NIL "base64" 634 9)("text" "html" ("charset" "GB2312") NIL
NIL "quoted-printable" 2488 33) "alternative") RFC822.SIZE 5676)
A06 OK Fetch completed
A07 Fetch 5 rfc822 #查看第5封邮件内容 按电子邮件的标准格式
* 5 FETCH (RFC822 {5676}
X-RM-Sender:cbacba@139.com
X-Richmail-Antispam: sCL2rVi0borhSzeOjpgspNVjVikRHTFgxJlThRS3bNKNy5SIjpgwauQ=
X-RM-SPAM-FLAG:00000000
Received:from COL004-OMC3S9.139.com (unknown[65.55.34.147])
by rmmx-cloud_rmmx_9_11-12070 (RichMail) with SMTP id 2f26547ea298792-23
eff;
Wed, 03 Dec 2014 13:41:46 +0800 (CST)
X-RM-TRANSID:2f26547ea298792-23eff
Received: from COL004-MC3F21.139.com ([65.55.34.136]) by COL004-OMC3S9.139.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751);
Tue, 2 Dec 2014 21:41:44 -0800
Resent-Message-ID: <<A href="mailto:COL004-MC3F21AA584F557EBB104B6AB9DC7B0@phx.gbl">COL004-MC3F21AA584F557EBB104B6AB9DC7B0@phx.gbl>
Resent-To: cbacba@139.com
Resent-Date: Tue, 2 Dec 2014 21:41:44 -0800
Resent-From: cbacba@hotmail.com
X-HM-Routing-Path:wU4a2dqWajB9g3bPBjG0jPBKaxxIH+uV6LA4rfVsejiCCnxzIyjtYZ3qlujmjB
99uKCKGZdLmjYdCOhC+qSZIYT95Q6Uu5uL0qcHG6D9OllGjY8MOvjdoHZ2XBPmGeMaIEfKGka3NCd7rb
8TX9iMxQ==
Received: from smtpbg298.qq.com ([184.105.67.102]) by COL004-MC3F21.hotmail.com
over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751);
Tue, 2 Dec 2014 21:41:42 -0800
X-QQ-mid: bizesmtp9t1417585295t631t048
Received: from FUJJ (unknown [211.161.97.62])
by esmtp4.qq.com (ESMTP) with SMTP id 0
for <<A href="mailto:cbacba@139.com">cbacba@139.com>; Wed, 03 Dec 2014 13:41:35 +0800 (CST)
X-QQ-SSF: 00400000008000F0F310060A0000000
X-QQ-FEAT: 0OH0HGTXwU4S8y2nqWRY0/PvFn/VPnEkN4ityOIXEY8c3yakn+XkE/+S8aWhG
1xGEQbEpl25kLttSI116/EFlRI+3PFyCFZRqs02ZYH6gJVMKCjxxUme3H3MyFcB+pWlX2jU
fgP+vQb6nGba5Q+AdIiZhKuC0eOW/PjgfrA7nKDS8l1Ieno9YpDEutaMnGfAnCVMyo/1WL0
0HPs/EfAMDA==
X-QQ-GoodBg: 2
Date: Wed, 3 Dec 2014 13:39:28 +0800
From: abcabc <<A href="mailto:abcabc@163.cn">abcabc@163.cn>
To: cbacba <<A href="mailto:cbacba@139.com">cbacba@139.com>
Subject: =?GB2312?B?w+bK1NH7x+s=?=
X-Priority: 3
X-Has-Attach: no
X-Mailer: Foxmail 7, 2, 5, 136[cn]
Mime-Version: 1.0
Message-ID: <<A href="mailto:2014120313392756509615@163.cn">2014120313392756509615@163.cn>
Content-Type: multipart/alternative;
boundary="----=_001_NextPart862568436323_=----"
X-QQ-SENDSIZE: 520
X-QQ-FName: E0AB29E2F5CE41E79B2AB605E5A9F983
X-QQ-LocalIP: 112.95.241.173
Return-Path: abcabc@163.cn
X-OriginalArrivalTime: 03 Dec 2014 05:41:42.0078 (UTC) FILETIME=[D0EF95E0:01D00E
BB]
This is a multi-part message in MIME format.
------=_001_NextPart862568436323_=----
Content-Type: text/plain;
charset="GB2312"
Content-Transfer-Encoding: base64
q8u+tcSjrL3xzOy157uwwarPtbn9oaMNCg0KICAgICAgICDE+sP3zOyjqDEy1MI0yNWjqcnPzucx
MLXjMzC31r/Jt/G3vbHjtb3O0rmry769+NDQ0rvPwsPmytSjrMPmytTKsbzkMdChyrHX89PSoaMN
ICAgICAgwarPtbXnu7CjujE1ODQwNjI5MTQ1DQoNCiAgICAgICAgINLUyc8gIMfryLfIzw0KICAg
ICAgIMnu29rN+MC2zajTw7/GvLwNCiAgICAgICAgIDIwMTQtMTItMDMNCg0KDQoNCmZ1amlhbmdq
aW5nDQo=
------=_001_NextPart862568436323_=----
Content-Type: text/html;
charset="GB2312"
Content-Transfer-Encoding: quoted-printable
t=3DGB2312">=
=0A
=B9=CB=BD=
=AD=E4=EC=A3=BA
&nbs=
p; =C4=FA=BA=C3
=
; =AB=CB=BE=B5=C4=A3=AC=BD=F1=CC=EC=B5=E7=BB=B0=C1=
=AA=CF=B5=B9=FD=A1=A3
iv style=3D"FONT-FAMILY: Tahoma"> =D4=
=A3=AC=C3=E6=CA=D4=CA=B1=BC=E41=D0=A1=CA=B1=D7=F3=D3=D2=A1=A3
yle=3D"FONT-FAMILY: Tahoma">
&=
nbsp; =CA=D9=B4=F3=CF=C3305
FONT-FAMILY: Tahoma"=
>
"> =C1=AA=CF=B5=C8=CB =D5=C5=D0=A1=
=BD=E3=BB=F2=B8=B6=CF=C8=C9=FA
&nb=
sp; =BB=B0=A3=BA15840629145</=
div>
: Tahoma"> =D2=D4=C9=CF =C7=EB=C8=
=B7=C8=CF
&nb=
sp; 7=A8=C0=B4=C3=E6=CA=AC=D0=BB=D0=BB=A1=A3
-FAMILY: Tahoma">
> =C9=EE=DB=DA=CD=F8=C0=B6=CD=A8=D3=C3=BF=
=C6=BC=BC
&nb=
sp; 2014-12-03
=0A
=0A
height: 1px;" align=3D"left" color=3D"#b5c4df" size=3D"1">=0A
fu=
jiangjing
=0A
------=_001_NextPart862568436323_=------
)
A07 OK Fetch completed
A08 Fetch 5 flags #查看第5封邮件 标识
* 5 FETCH (FLAGS (\Seen))
A08 OK Fetch completed
A09 Store 5 +flags.silent (\deleted) #设置 第5封邮件的删除标识
* 5 FETCH (FLAGS (\Deleted \Seen) UID 1338916219)
A09 OK STORE completed
A10 Expunge #执行删除 收件箱内所有设置过删除标识的邮件
* 5 EXPUNGE
A10 OK EXPUNGE completed
A11 noop #空语句
A11 OK NOOP completed
A20 logout #退出