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.59k stars 623 forks source link

Mailcore2: Parsing mail issue. #599

Open Pankaj03 opened 10 years ago

Pankaj03 commented 10 years ago

Hello,

When i parsing the BODYSTRUCTURE, there is an error "Unable to parse response from server". May i know, whats the problem with the following response:

2014-02-19 10:39:20.751 Mail[3678:142b] ConnectionLogger event logged: 1 withData: 6 FETCH 1 (UID BODYSTRUCTURE) 2014-02-19 10:39:20.848 Mail[3678:142b] ConnectionLogger event logged: 0 withData: * 1 FETCH (UID 491565 BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "UTF-8") NIL NIL "base64" 5374 125 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "UTF-8") NIL NIL "base64" 28410 408 NIL NIL NIL)("IMAGE" "PNG" ("NAME" "IMAGE002.PNG") "_com_android_email_attachmentprovider_1_2178_RAW@sec.galaxytab" "image002.png" "base64" 14824 NIL ("INLINE" ("FILENAME" "image002.png" "size" "10831")) NIL) "RELATIVE" ("BOUNDARY" "--_com.android.email_1869209453459961") NIL NIL) "ALTERNATIVE" ("boundary" "--_com.android.email_1869209365737870") NIL NIL)) 2014-02-19 10:39:20.848 Mail[3678:142b] ConnectionLogger event logged: 3 withData: 1 FETCH (UID 491565 BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "UTF-8") NIL NIL "base64" 5374 125 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "UTF-8") NIL NIL "base64" 28410 408 NIL NIL NIL)("IMAGE" "PNG" ("NAME" "IMAGE002.PNG") "_com_android_email_attachmentprovider_1_2178_RAW@sec.galaxytab" "image002.png" "base64" 14824 NIL ("INLINE" ("FILENAME" "image002.png" "size" "10831")) NIL) "RELATIVE" ("BOUNDARY" "--_com.android.email_1869209453459961") NIL NIL) "ALTERNATIVE" ("boundary" "--_com.android.email_1869209365737870") NIL NIL)) 2014-02-19 10:39:20.849 Mail[3678:a0b] error in imapMessagesFetchOp : Error Domain=MCOErrorDomain Code=3 "Unable to parse response from server." UserInfo=0x1106abc0 {NSLocalizedDescription=Unable to parse response from server.}

Please help!

dinhvh commented 10 years ago

Could you let me know which server it is? Thanks!