Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - An error was reported when pulling and receiving INBOX -- “Error Domain=MCOErrorDomain Code=3 "Unable to parse response from server." UserInfo={NSLocalizedDescription=Unable to parse response from server.} ” #2005

Open
chachayiji opened this issue Jun 2, 2024 · 1 comment
Labels

Comments

@chachayiji
Copy link

Summary

Platform(s)

<iOS>

Happens on Mail Server

<163>

Piece of code

MCOIMAPSession *session = [[MCOIMAPSession alloc] init];
[session setHostname:@"imaphz.qiye.163.com"];
[session setPort:993];
[session setUsername:@"[email protected]"];
[session setPassword:@"xxxxxxx"];
[session setConnectionType:MCOConnectionTypeTLS];

Actual outcome
Parse error,Why can't the data returned by Connection Logs be parsed by mailcore2

Connection Logs

* 235 FETCH (UID 1615978270 INTERNALDATE "29-May-2024 16:42:42 +0800" FLAGS (\Seen) BODYSTRUCTURE (((("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 3518 67 NIL NIL NIL)("text" "html" ("charset" "UTF-8") NIL NIL "quoted-printable" 3558 69 NIL NIL NIL) "ALTERNATIVE" ("boundary" "----=_Part_6676_826437753.1716972159817") NIL NIL NIL)("image" "jpeg" ("name" "ADVLOGO1644893818405657.jpg") "<logoImageCid02>" NIL "base64" 542670 NIL ("inline" ("filename" "ADVLOGO1644893818405657.jpg")) NIL)("image" "png" ("name" "newLogo.png") "<logoImageCid01>" NIL "base64" 6694 NIL ("inline" ("filename" "newLogo.png")) NIL) "RELATED" ("boundary" "----=_Part_6675_644280001.1716972159817") NIL NIL NIL)("application" "octet-stream" ("name" "=?UTF-8?B?55S15a2Q6KGM56iL5Y2VLnBkZg==?=") NIL """" "base64" 327476 NIL ("attachment" ("filename" "=?UTF-8?B?55S15a2Q6KGM56iL5Y2VLnBkZg==?=")) NIL)("application" "octet-stream" ("name" "=?UTF-8?Q?=E7=94=B5=E5=AD=90=E5=8F=91=E7=A5=A8-1.pdf?=") NIL """" "base64" 49992 NIL ("attachment" ("filename" "=?UTF-8?Q?=E7=94=B5=E5=AD=90=E5=8F=91=E7=A5=A8-1.pdf?=")) NIL) "MIXED" ("boundary" "----=_Part_6674_799664062.1716972159817") NIL NIL NIL) BODY[HEADER.FIELDS (DATE SUBJECT FROM SENDER REPLY-TO TO CC MESSAGE-ID REFERENCES IN-REPLY-TO)] {292}
Date: Wed, 29 May 2024 16:42:39 +0800 (CST)
From: =?UTF-8?B?6aaW5rG957qm6L2m?= <[email protected]>
To: [email protected]
Message-ID: <2078012665.6677.1716972159820@10-71-24-22>
Subject: =?UTF-8?B?6aaW5rG957qm6L2mLeeUteWtkOWPkQ==?=
 =?UTF-8?B?56Wo5Y+K6KGM56iL5Y2V5byA5YW36YCa55+l?=
)

Expected outcome
The resolution succeeded and returned to the mailing list

Link to sample code on GitHub reproducing the issue (a full Xcode project):


@chachayiji chachayiji added the bug label Jun 2, 2024
@chachayiji
Copy link
Author

We have discovered that only this specific email cannot be parsed, while other emails are processed normally. Could you please advise on how to configure the system to discard unparseable emails, or alternatively, how to return the unparseable emails to the caller in a different way, while still returning the other successfully parsed emails?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant