MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.6k stars 624 forks source link

fetch mails issues #1142

Closed mqmq closed 9 years ago

mqmq commented 9 years ago

hi , i use:

MCOIMAPMessagesRequestKind requestKind = (MCOIMAPMessagesRequestKind)
    (MCOIMAPMessagesRequestKindFullHeaders | MCOIMAPMessagesRequestKindStructure |
     MCOIMAPMessagesRequestKindInternalDate | MCOIMAPMessagesRequestKindHeaderSubject|
     MCOIMAPMessagesRequestKindFlags);
    MCOIMAPFetchMessagesOperation*op = [[MailSessionMob shareSession].imapSession fetchMessagesOperationWithFolder:fol requestKind:requestKind uids:[MCOIndexSet indexSetWithIndex:[UID intValue]]];
    [op start:^(NSError *error, NSArray *messages, MCOIndexSet *vanishedMessages) {
        Block(error,messages);
    }];

error:

Domain=MCOErrorDomain Code=3 "Unable to parse response from server

log:

2015-06-15 18:34:05.103 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData: * OK IMAP4rev1 Server C35IMAP ready 
2015-06-15 18:34:05.104 NPushMail[80661:503588] event logged:0x7fa8c32ca070 1 withData: 1 CAPABILITY
2015-06-15 18:34:05.206 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData: * CAPABILITY IMAP4rev1 IMAP4 SORT MAILBOX XLIST
2015-06-15 18:34:05.306 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData: 
1 OK CAPABILITY completed.
2015-06-15 18:34:05.421 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData: 2 OK LOGIN
2015-06-15 18:34:05.522 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData:  completed.
2015-06-15 18:34:05.522 NPushMail[80661:503588] event logged:0x7fa8c32ca070 1 withData: 3 CAPABILITY
2015-06-15 18:34:05.623 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData: * CAPABILITY IMAP4rev1 IMAP4 SORT MAILBOX XLIST
3 OK
2015-06-15 18:34:05.724 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData:  CAPABILITY completed.
2015-06-15 18:34:05.724 NPushMail[80661:503588] event logged:0x7fa8c32ca070 1 withData: 4 LIST "" ""
2015-06-15 18:34:05.828 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData: * LIST (\HasNoChildren \Inbox) "." "INBOX"
* LIST
2015-06-15 18:34:05.929 NPushMail[80661:503588] event logged:0x7fa8c32ca070 0 withData:  (\HasNoChildren \Drafts) "." "Drafts"
* LIST (\HasNoChildren \Sent) "." "Sent"
* LIST (\HasNoChildren \Spam) "." "Spam"
* LIST (\HasNoChildren \Trash) "." "Trash"
* LIST (\HasNoChildren) "." "&XfJfUmhj-"
4 OK LIST completed.

2015-06-15 18:38:00.834 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: * OK IMAP4rev1 Server C35IMAP ready 
2015-06-15 18:38:00.834 NPushMail[80661:504645] event logged:0x7fa8c32ca070 1 withData: 1 CAPABILITY
2015-06-15 18:38:01.014 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: * CAPABILITY IMAP4rev1 IMAP4 SORT MAILBOX XLIST
2015-06-15 18:38:01.787 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: 
1 OK CAPABILITY completed.
2015-06-15 18:38:01.963 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: 2 
2015-06-15 18:38:02.131 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: OK LOGIN completed.
2015-06-15 18:38:02.131 NPushMail[80661:504645] event logged:0x7fa8c32ca070 1 withData: 3 CAPABILITY
2015-06-15 18:38:02.779 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: *
2015-06-15 18:38:02.944 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData:  
2015-06-15 18:38:03.107 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: CAPABILITY IMAP4rev1 IMAP4 SORT MAILBOX XLIST
2015-06-15 18:38:03.273 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: 
3 OK CAPABILITY completed.
2015-06-15 18:38:03.273 NPushMail[80661:504645] event logged:0x7fa8c32ca070 1 withData: 4 LIST "" ""
2015-06-15 18:38:03.535 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: * 
2015-06-15 18:38:03.693 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: LIST (\HasNoChildren \Inbox) "." "INBOX"
* LIST (\HasNoChildren \Drafts) "." "Drafts"
* LIST (\HasNoChildren \Sent) "." "Sent"
* LIST (\HasNoChildren \Spam) "." "Spam"
* LIST (\HasNoChildren \Trash) "." "Trash"
* LIST (\HasNoChildren) "." "&XfJfUmhj-"
4 OK LIST completed.
2015-06-15 18:38:03.694 NPushMail[80661:504645] event logged:0x7fa8c32ca070 1 withData: 5 XLIST "" "*"
2015-06-15 18:38:03.855 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: * XLIST
2015-06-15 18:38:04.010 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData:  (\HasNoChildren \Inbox) "." "INBOX"
* XLIST (\HasNoChildren \Drafts) "." "Drafts"
* XLIST (\HasNoChildren \Sent) "." "Sent"
* XLIST (\HasNoChildren \Spam) "." "Spam"
* XLIST (\HasNoChildren \Trash) "." "Trash"
* XLIST (\HasNoChildren) "." "&XfJfUmhj-"
5 OK XLIST completed.
2015-06-15 18:38:04.016 NPushMail[80661:504645] event logged:0x7fa8c32ca070 1 withData: 6 SELECT INBOX
2015-06-15 18:38:04.173 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: * FLAGS
2015-06-15 18:38:04.334 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData:  (\Answered \Deleted \Draft \Flagged \Recent \Seen)
* OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen)] Limited
* 1550 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 20130401] OK
* OK [UIDNEXT 29754] Predicted next UID
* OK [MYRIGHTS "acdilrsw"] ACL
6 OK [READ-WRITE] SELECT completed.
2015-06-15 18:38:04.336 NPushMail[80661:504645] event logged:0x7fa8c32ca070 1 withData: 7 FETCH 1531:1550 (UID FLAGS BODYSTRUCTURE INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date Subject From Sender Reply-To To Cc Message-ID References In-Reply-To)])
2015-06-15 18:38:04.504 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: * 1531 
2015-06-15 18:38:04.665 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: FETCH (UID 29723 FLAGS (\Seen) INTERNALDATE "12-Jun-2015 19:07:29 +0800" BODYSTRUCTURE (((("TEXT" "PLAIN" ("charset" "gb2312") NIL NIL "base64" 4802 63 NIL NIL NIL)("TEXT" "HTML" ("charset" "gb2312") NIL NIL "quoted-printable" 56728 955 NIL NIL NIL) "alternative" ("boundary" "_000_HKNPR03MB28972F2417A02CBCEFDC152D1BB0HKNPR03MB289apcprd_") NIL NIL)("IMAGE" "JPEG" ("name" "~WRD000.jpg") "<~WRD000.jpg>" NIL "base64" 1132 NIL ("inline" ("modification-date" "Fri, 12 Jun 2015 11:01:09 GMT" "filename" "~WRD000.jpg" "size" "823" "creation-date" "Fri, 12 Jun 2015 11:01:09 GMT")) NIL) "related" ("type" "multipart/alternative" "boundary" "_005_HKNPR03MB28972F2417A02CBCEFDC152D1BB0HKNPR03MB289apcprd_") NIL NIL)("APPLICATION" "PDF" ("name" "20150612200007.pdf") "<DB4F4887F88D8E4EB9140CF144D4CAE6@apcprd03.prod.outlook.com>" NIL "base64" 145018 NIL ("attachment" ("modification-date" "Fri, 12 Jun 2015 11:01:09 GMT" "size" "105971" "filename" "20150612200007.pdf" "creation-date" "Fri, 12 Jun 2015 11:01:09 GMT")) NIL) "mixed" ("boundary" "_006_HKNPR03MB28972F2417A02CBCEFDC152D1BB0HKNPR03MB289apcprd_") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {707}
date: Fri, 12 Jun 2015 11:02:31 +0000
from: =?gb2312?B?uci05aGhvNG66g==?= <y.tanimura@toyoshima.co.jp>
to: =?gb2312?B?1tzH5cGr?= <zhouqinglian@m-garments.com>,
        =?gb2312?B?zfXD98P3?=
    <wangmingming@m-garments.com>
cc: =?gb2312?B?zO+ueCCGmQ==?= <h.tabata@toyoshima.co.jp>
message-id: <HKNPR03MB28972F2417A02CBCEFDC152D1BB0@HKNPR03MB289.apcprd03.prod.outlook.com>
in-reply-to: <000a01d0a4ff$279423a0$76bc6ae0$@hybrid-inc.co.jp>
references: <a47ac5e34dcb364e014de1ecbd54410f@35MA.m-garments.com>
 <SINPR03MB28208BC19E044A60E9F8DE2DABB0@SINPR03MB282.apcprd03.prod.outlook.com>,<000a01d0a4ff$279423a0$76bc6ae0$@hybrid-inc.co.jp>
subject: =?gb2312?B?Rlc6ILTwuLQ6tPC4tDpGdzo1NTEyNTY017e80w==?=

)
* 1532 FETCH (UID 29724 FLAGS (\Seen) INTERNALDATE "12-Jun-2015 19:17:03 +0800" BODYSTRUCTURE (((("TEXT" "PLAIN" ("charset" "gb2312") NIL NIL "base64" 5624 74 NIL NIL NIL)("TEXT" "HTML" ("charset" "gb2312") NIL NIL "quoted-printable" 58789 1020 NIL NIL NIL) "alternative" ("boundary" "_000_SINPR03MB28216B9A3B0DDD5B9AE11D1DABB0SINPR03MB282apcprd_") NIL NIL)("IMAGE" "JPEG" ("name" "~WRD000.jpg") "<~WRD000.jpg>" NIL "base64" 1132 NIL ("inline" ("modification-date" "Fri, 12 Jun 2015 11:01:09 GMT" "filename" "~WRD000.jpg" "size" "823" "creation-date" "Fri, 12 Jun 2015 11:01:09 GMT")) NIL) "related" ("type" "multipart/alternative" "boundary" "_005_SINPR03MB28216B9A3B0DDD5B9AE11D1DABB0SINPR03MB282apcprd_") NIL NIL)("APPLICATION" "PDF" ("name" "20150612200007.pdf") "<DB4F4887F88D8E4EB9140CF144D4CAE6@apcprd03.prod.outlook.com>" NIL "base64" 145018 NIL ("attachment" ("modification-date" "Fri, 12 Jun 2015 11:01:09 GMT" "size" "105971" "filename" "20150612200007.pdf" "creation-date" "Fri, 12 Jun 2015 11:01:09 GMT")) NIL) "mixed" ("boundary" "_006_SINPR03MB28216B9A3B0DDD5B9AE11D1DABB0SINPR03MB282apcprd_") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {820}
date: Fri, 12 Jun 2015 11:13:18 +0000
from: =?gb2312?B?zO+ueCCGmQ==?= <h.tabata@toyoshima.co.jp>
to: =?gb2312?B?zfXD98P3?= <wangmingming@m-garments.com>
cc: =?gb2312?B?zuXjayAg1tyktaTz?= <zhouqinglian@m-garments.com>,
        =?gb2312?B?uci05aGhvNG66g==?= <y.tanimura@toyoshima.co.jp>
message-id: <SINPR03MB28216B9A3B0DDD5B9AE11D1DABB0@SINPR03MB282.apcprd03.prod.outlook.com>
in-reply-to: <HKNPR03MB28972F2417A02CBCEFDC152D1BB0@HKNPR03MB289.apcprd03.prod.outlook.com>
references: <a47ac5e34dcb364e014de1ecbd54410f@35MA.m-garments.com>
 <SINPR03MB28208BC19E044A60E9F8DE2DABB0@SINPR03MB282.apcprd03.prod.outlook.com>,<000a01d0a4ff$279423a0$76bc6ae0$@hybrid-inc.co.jp>,<HKNPR03MB28972F2417A02CBCEFDC152D1BB0@HKNPR03MB289.apcprd03.prod.outlook.com>
subject: =?gb2312?B?Rlc6ILTwuLQ6tPC4tDpGdzo1NTEyNTY017e80w==?=

)
* 1533 FETCH (UID 29727 FLAGS (\Answered \Seen) INTERNALDATE "13-Jun-2015 10:45:44 +0800" BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "utf-8") NIL NIL "base64" 5766 75 NIL NIL NIL)("TEXT" "HTML" ("charset" "utf-8") NIL NIL "quoted-printable" 25196 529 NIL NIL NIL) "alternative" ("boundary" "----=_001_NextPart214453855168_=----") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {503}
date: Sat, 13 Jun 2015 10:45:14 +0800
from: qdwangxiuwei<qdwangxiuwei@163.com>
reply-to: qdwangxiuwei <qdwangxiuwei@163.com>
to: zhouqinglian@m-garments.com<zhouqinglian@m-garments.com>, 
    =?utf-8?B?5b6Q5a6B?= <70802@m-garments.com>
cc: sammyaiyou<sammyaiyou@163.com>, 
    =?utf-8?B?546L5piO5piO?= <wangmingming@m-garments.com>
message-id: <201506131045125938116@163.com>
references: <a47ac5e34dcb364e014de7425b766c8a@35MA.m-garments.com>
subject: =?utf-8?B?UmU6IOetlOWkjTog5YWz5LqO5qOA5ZOB?=

)
* 1534 FETCH (UID 29730 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 14:35:42 +0800" BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "utf-8") NIL NIL "quoted-printable" 6373 147 NIL ("inline" ()) NIL)("TEXT" "HTML" ("charset" "utf-8") NIL NIL "quoted-printable" 16885 315 NIL ("inline" ()) NIL) "alternative" ("boundary" "557bcf39_6b8b4567_96") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {590}
date: Sat, 13 Jun 2015 14:35:37 +0800
from: =?utf-8?Q?=E5=91=A8=E6=B8=85=E8=8E=B2?=
 <zhouqinglian@m-garments.
2015-06-15 18:38:04.827 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: com>
to: <wangmingming@m-garments.com>,<k.kajima@toyoshima.co.jp>,<zhouqinglian@m-garments.com>
cc: <y.tanimura@toyoshima.co.jp>
message-id: <90A7753E-F6A0-4DA8-B82A-6306EAE45CF4>
subject: =?utf-8?Q?=E5=9B=9E=E5=A4=8D=E5=85=A8=E9=83=A8=3ARE=3A=E5=8D=83=E9=B3=A5=E3=82=A8=E3=83=B3=E3=83=9C=E3=82=B9=E3=83=97=E3=83=AA=E3=83=B3=E3=83=88=E4=BC=81=E7=94=BB=E3=81=AE=E4=BB=95=E6=A7=98=E6=9B=B8=E3=83=87=E3=83=BC=E3=82=BF=E6=B7=BB=E4=BB=98=E8=87=B4=E3=81=97=E3=81=BE=E3=81=99?=

)
* 1535 FETCH (UID 29732 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 15:14:48 +0800" BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "UTF-8") NIL NIL "base64" 4786 63 NIL NIL NIL)("TEXT" "HTML" ("charset" "UTF-8") NIL NIL "base64" 13164 170 NIL NIL NIL) "alternative" ("boundary" "----=_Part_41843_1402346395.1434179688239") NIL NIL) "mixed" ("boundary" "----=_Part_41842_992625413.1434179688239") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {449}
date: Sat, 13 Jun 2015 15:14:48 +0800 (CST)
from: =?UTF-8?B?546L5piO5piO?= <wangmingming@m-garments.com>
to: zhouqinglian<zhouqinglian@m-garments.com>, 
    =?UTF-8?B?5b6Q5a6B?= <70802@m-garments.com>
message-id: <a47ac5e34dcb364e014debc557307d01@35MA.m-garments.com>
subject: =?UTF-8?B?562U5aSNOui9rOWPkTpSZTrljYPps6Xjgqjjg7Pjg5zjgrnjg5fjg6o=?=
 =?UTF-8?B?44Oz44OI5LyB55S744Gu5LuV5qeY5pu4?=
 =?UTF-8?B?44OH44O844K/5re75LuY6Ie044GX44G+44GZ?=

)
* 1536 FETCH (UID 29734 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 16:19:26 +0800" BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "UTF-8") NIL NIL "base64" 328 6 NIL NIL NIL)("TEXT" "HTML" ("charset" "UTF-8") NIL NIL "base64" 640 10 NIL NIL NIL) "alternative" ("boundary" "----=_Part_41987_650299464.1434183565837") NIL NIL) "mixed" ("boundary" "----=_Part_41986_1314441279.1434183565837") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {379}
date: Sat, 13 Jun 2015 16:19:25 +0800 (CST)
from: =?UTF-8?B?546L5piO5piO?= <wangmingming@m-garments.com>
to: =?UTF-8?B?5ZC05Lqa5Lic?= <m_garments@163.com>
cc: =?UTF-8?B?5ZGo5riF6I6y?= <zhouqinglian@m-garments.com>, 
    =?UTF-8?B?6YOd55Sw5Lqu?= <70802@m-garments.com>
message-id: <a47ac5e34dcb364e014dec00820f7e04@35MA.m-garments.com>
subject: =?UTF-8?B?6Ii55qC35Y+R56Wo?=

)
* 1537 FETCH (UID 29735 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 16:31:16 +0800" BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "UTF-8") NIL NIL "base64" 1034 15 NIL NIL NIL)("TEXT" "HTML" ("charset" "UTF-8") NIL NIL "base64" 1546 21 NIL NIL NIL) "alternative" ("boundary" "----=_Part_42005_196924714.1434184274573") NIL NIL)("APPLICATION" "OCTET-STREAM" ("name" "20150613163207990.tif") NIL NIL "base64" 67468 NIL ("attachment" ("filename" "20150613163207990.tif")) NIL)("APPLICATION" "OCTET-STREAM" ("name" "=?utf-8?B?6YCB44KK54q2LmpwZw==?=") NIL NIL "base64" 2095070 NIL ("attachment" ("filename" "=?utf-8?B?6YCB44KK54q2LmpwZw==?=")) NIL) "mixed" ("boundary" "----=_Part_42004_1654674252.1434184274573") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {483}
date: Sat, 13 Jun 2015 16:31:14 +0800 (CST)
from: =?UTF-8?B?546L5piO5piO?= <wangmingming@m-garments.com>
to: =?UTF-8?B?6LC35p2R5qeY44CA44CA6LGK5bO2?= <y.tanimura@toyoshima.co.jp>
cc: =?UTF-8?B?5ZGo5riF6I6y?= <zhouqinglian@m-garments.com>,=?UTF-8?B?6YOd55Sw5Lqu?= <70802@m-garments.com>, 
    =?UTF-8?B?55Sw55WRIOanmOOAgOOAgA==?= <h.tabata@toyoshima.co.jp>
message-id: <a47ac5e34dcb364e014dec0b528f7e1e@35MA.m-garments.com>
subject: =?UTF-8?B?6I2354mp6YCB44KK44Gu44GU5aCx5ZGK?=

)
* 1538 FETCH (UID 29736 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 16:50:14 +0800" BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "GB2312") NIL NIL "base64" 890 13 NIL NIL NIL)("TEXT" "HTML" ("charset" "GB2312") NIL NIL "quoted-printable" 5727 75 NIL NIL NIL) "alternative" ("boundary" "----=_002_NextPart060550472886_=----") NIL NIL)("APPLICATION" "OCTET-STREAM" ("name" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM2MTEuanBn?=") NIL NIL "base64" 238466 NIL ("attachment" ("filename" "=?GB2312?B?UVHNvMasMjAxNT
2015-06-15 18:38:04.832 NPushMail[80661:504645] event logged:0x7fa8c32ca070 0 withData: (null)
2015-06-15 18:38:04.832 NPushMail[80661:504645] event logged:0x7fa8c32ca070 3 withData: 1538 FETCH (UID 29736 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 16:50:14 +0800" BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "GB2312") NIL NIL "base64" 890 13 NIL NIL NIL)("TEXT" "HTML" ("charset" "GB2312") NIL NIL "quoted-printable" 5727 75 NIL NIL NIL) "alternative" ("boundary" "----=_002_NextPart060550472886_=----") NIL NIL)("APPLICATION" "OCTET-STREAM" ("name" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM2MTEuanBn?=") NIL NIL "base64" 238466 NIL ("attachment" ("filename" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM2MTEuanBn?=")) NIL)("APPLICATION" "OCTET-STREAM" ("name" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM5MTkuanBn?=") NIL NIL "base64" 135522 NIL ("attachment" ("filename" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM5MTkuanBn?=")) NIL) "mixed" ("boundary" "----=_001_NextPart506634150561_=----") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {0}
kjakm commented 9 years ago

Could you format your post better? It's difficult to read and understand. Use 3 ` characters before and after code to put it in a code block. You can also select the preview tab to ensure the formatting is good. And unless I missed it you don't specify your problem. What is your problem when fetching?

mqmq commented 9 years ago

i got an error :Domain=MCOErrorDomain Code=3 "Unable to parse response from server

kjakm commented 9 years ago

What is your mail server?

mqmq commented 9 years ago

mail.m-garments.com
port:993

dinhvh commented 9 years ago

Probably a parse error / bad server.

dinhvh commented 9 years ago

weird

1538 FETCH (UID 29736 FLAGS (\Seen) INTERNALDATE "13-Jun-2015 16:50:14 +0800" BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "GB2312") NIL NIL "base64" 890 13 NIL NIL NIL)("TEXT" "HTML" ("charset" "GB2312") NIL NIL "quoted-printable" 5727 75 NIL NIL NIL) "alternative" ("boundary" "----=_002_NextPart060550472886_=----") NIL NIL)("APPLICATION" "OCTET-STREAM" ("name" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM2MTEuanBn?=") NIL NIL "base64" 238466 NIL ("attachment" ("filename" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM2MTEuanBn?=")) NIL)("APPLICATION" "OCTET-STREAM" ("name" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM5MTkuanBn?=") NIL NIL "base64" 135522 NIL ("attachment" ("filename" "=?GB2312?B?UVHNvMasMjAxNTA2MTMxNjM5MTkuanBn?=")) NIL) "mixed" ("boundary" "----=_001_NextPart506634150561_=----") NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {0}

doesn't fail to parse for me

I'm not sure what's going on.