hechengjin 发表于 2016-3-27 21:47:32

收取过程中出错,然后中断收取过程

抓包发现如下问题:
RETR 5
-ERR System error

针对这种情况foxmail会断续收取下面的,而thunderbird会弹出如上窗口且,中断收取过程

foxmail和thunderbird收取过程发送命令对比
----------foxmail:先收最新再收次新------------------------------
+OK richmail system v10(32c95524ed692c4-01cd4)
USER hcj@sgcc.com.cn
+OK
PASS richinfo
+OK login success
STAT
+OK 81 10298
LIST
+OK
1 896
2 891
......

80 1193
81 1199
.

UIDL
+OK
1 008100009b679a5d00000001
2 008200009b67f7d400000001

.....
80 008100009b6769cf00000008
81 008200009b67480300000027
.

TOP 1 1
+OK
X-RM-SPAM-FLAG: 00000000
X-CLIENT-INFO:
Message-ID: <54B4784D.4030600@sgcc.com.cn>
Date: Tue, 13 Jan 2015 09:43:41 +0800
From: lau003 <lau003@sgcc.com.cn>
User-Agent: ThinkMail/1.4.0
MIME-Version: 1.0
To: hcj <hcj@sgcc.com.cn>
Subject: 111
Content-Type: multipart/alternative;
boundary="------------000509020807050900010103"
This is a multi-part message in MIME format.
.
TOP 2 1

TOP 3 1
RETR 81
+OK

邮件内容
RETR 80
....
RETR 5
-ERR System error
...
RETR 1
.
QUIT

----------thunderbird:先收老的再收新的------------------------------

+OK richmail system v10(32c95524efd02ca-01d3d)


AUTH


-ERR Bad sequence of commands


CAPA


-ERR Bad sequence of commands


USER hcj@sgcc.com.cn


+OK


PASS richinfo


+OK login success


STAT


+OK 81 10298


LIST


+OK


1 896
....
81 1199
.
UIDL
+OK
1 008100009b679a5d00000001
81 008200009b67480300000027
.
RETR 1
...
.

RETR 5

-ERR System error
后面不会再发命令获取了。



4012=RETR 命令未成功。无法获取邮件。

#define POP3_RETR_FAILURE                                     4012
nsPop3Protocol::Error(int32_t err_code)
nsPop3Protocol::RetrResponse(nsIInputStream* inputStream,
if(!m_pop3ConData->command_succeeded)
            return Error(POP3_RETR_FAILURE);


pop3EventStatusTextNoMsgs=无邮件需要下载


页: [1]
查看完整版本: 收取过程中出错,然后中断收取过程