我目前正在开发自己的IMAP服务器。 当我收到3封邮件的FETCH请求并发送3封邮件的回复时,客户端似乎无法识别我的回复。 (我的客户报告没有邮件)
这是请求和响应(C是客户端,S是服务器):
C: 405 UID FETCH 4,3,1 (INTERNALDATE RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (subject from date content-type to cc message-id references importance reply-to)])
S: * 3 FETCH (UID 4 RFC822.SIZE 332 INTERNALDATE "<date>" FLAGS (\Recent) BODY[HEADER.FIELDS (SUBJECT FROM DATE CONTENT-TYPE TO CC MESSAGE-ID REFERENCES IMPORTANCE REPLY-TO)] {317}
Subject: <subject>
From: <email>
Date: <date>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
To: <email>
CC: <email>
Message-ID: <messid>
Reply-To: <email>
)
S: * 2 FETCH (UID 3 RFC822.SIZE 731 INTERNALDATE "<date>" FLAGS (\Recent) BODY[HEADER.FIELDS (SUBJECT FROM DATE CONTENT-TYPE TO CC MESSAGE-ID REFERENCES IMPORTANCE REPLY-TO)] {231}
Subject: <subject>
From: <email>
Date: <date>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Message-ID: <messid>
Reply-To: <email>
)
S: * 1 FETCH (UID 1 RFC822.SIZE 400 INTERNALDATE "<date>" FLAGS (\Answered \Recent) BODY[HEADER.FIELDS (SUBJECT FROM DATE CONTENT-TYPE TO CC MESSAGE-ID REFERENCES IMPORTANCE REPLY-TO)] {252}
Subject: <subject>
From: <email>
Date: <date>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
To: <email>
Message-ID: <messid>
Reply-To: <email>
)
S: 405 OK UID FETCH completed
其中(主题)是实际主题,(email)是有效的emailadresses,(date)是日期,(messid)是唯一的message-id。
有人看到我在这里做错了什么。也许我发错了,或者我做错了什么? 有人可以帮我这个吗?
到目前为止,其他任何事情(登录,列表,搜索)都可以正常工作。如果需要,我也可以发送这些请求/回复
thanx i advance。