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

ImapProtocollException when fetching BodyStructure #878

Closed
jsaf80 opened this issue Jul 9, 2019 · 1 comment
Closed

ImapProtocollException when fetching BodyStructure #878

jsaf80 opened this issue Jul 9, 2019 · 1 comment
Labels
compatibility Compatibility with existing software server/gmx GMX.de/.net/etc server-bug The bug appears to be in the server

Comments

@jsaf80
Copy link

jsaf80 commented Jul 9, 2019

I'm fetching the BodyStructure of Mails in gmx.net and get an ImapProtocollException with immediately disconnecting the Client.

Here is the Protocoll from 3 Mails which triggers the Exception:

S: * 58056 FETCH (UID 168531 RFC822.SIZE 5826 INTERNALDATE "05-Jul-2019 23:29:19 +0000" ENVELOPE ("Fri, 05 Jul 2019 17:50:33 -0400" "**** decken sie jetzt ihren willkommensbonus auf!" (("Cosmo Casino" NIL "Miai" "kyta.mantzen.com")) (("Cosmo Casino" NIL "Miai" "kyta.mantzen.com")) (("Cosmo Casino" NIL "Miai" "kyta.mantzen.com")) ((NIL NIL "****" "gmx.de")) NIL NIL NIL "<1802311402.10088.1413706923455.JavaMail.fatwhs@sd-hffeprod-01.sanoma.fi>") BODYSTRUCTURE (("multipart" "related" ("boundary" "----=_@@@@BeautyqueenS87@_@147836_6893840099.85426606923635") NIL NIL "7BIT" 400 ("boundary" "----=_@@@@BeautyqueenS87@_@147836_6893840099.85426606923635") NIL NIL NIL)("TEXT" "html" ("charset" "UTF8") NIL NIL "7BIT" 1115 70 NIL NIL NIL NIL)("TEXT" "html" ("charset" "UTF8") NIL NIL "QUOTED-PRINTABLE" 16 2 NIL NIL NIL NIL) "mixed" ("boundary" "----=--_DRYORTABLE@@@_@@@8957836_03253840099.78526606923635") NIL NIL NIL) FLAGS ())

S: * 57659 FETCH (UID 168114 RFC822.SIZE 5765 INTERNALDATE "14-Jun-2019 17:08:19 +0000" ENVELOPE ("Fri, 14 Jun 2019 11:37:45 -0400" "Bitten Sie die Tarotkarten, Ihnen die Zukunft zu verraten" (("Christin" NIL "Miai" "unizims.com")) (("Christin" NIL "Miai" "unizims.com")) (("Christin" NIL "Miai" "unizims.com")) ((NIL NIL "****" "gmx.de")) NIL NIL NIL "<1802311402.10088.1413706923455.JavaMail.fatwhs@sd-hffeprod-01.sanoma.fi>") BODYSTRUCTURE (("multipart" "related" ("boundary" "----=_@@@@BeautyqueenS87@_@147836_6893840099.85426606923635") NIL NIL "7BIT" 317 ("boundary" "----=_@@@@BeautyqueenS87@_@147836_6893840099.85426606923635") NIL NIL NIL)("TEXT" "html" ("charset" "UTF8") NIL NIL "7BIT" 1117 77 NIL NIL NIL NIL)("TEXT" "html" ("charset" "UTF8") NIL NIL "QUOTED-PRINTABLE" 16 2 NIL NIL NIL NIL) "mixed" ("boundary" "----=--_PCPORTABLE@@_@@5237836_9653840099.85426606923635") NIL NIL NIL) FLAGS ())

S: * 58082 FETCH (UID 168559 RFC822.SIZE 5789 INTERNALDATE "07-Jul-2019 13:06:20 +0000" ENVELOPE ("Sat, 06 Jul 2019 14:07:28 -0400" "Suchst du nach jemandem in deiner Nahe?" (("Flirte Mich XXX" NIL "Miai" "mantzen.com")) (("Flirte Mich XXX" NIL "Miai" "mantzen.com")) (("Flirte Mich XXX" NIL "Miai" "mantzen.com")) ((NIL NIL "****" "gmx.de")) NIL NIL NIL "<1802311402.10088.1413706923455.JavaMail.fatwhs@sd-hffeprod-01.sanoma.fi>") BODYSTRUCTURE (("multipart" "related" ("boundary" "----=_@@@@BeautyqueenS87@_@147836_6893840099.85426606923635") NIL NIL "7BIT" 400 ("boundary" "----=_@@@@BeautyqueenS87@_@147836_6893840099.85426606923635") NIL NIL NIL)("TEXT" "html" ("charset" "UTF8") NIL NIL "7BIT" 1115 70 NIL NIL NIL NIL)("TEXT" "html" ("charset" "UTF8") NIL NIL "QUOTED-PRINTABLE" 16 2 NIL NIL NIL NIL) "mixed" ("boundary" "----=--_DRYORTABLE@@@_@@@8957836_03253840099.78526606923635") NIL NIL NIL) FLAGS (\Seen))

*Added **** to hide my emailaddress

How can I workaround the faulted bodystructure?

jstedfast added a commit that referenced this issue Jul 9, 2019
jstedfast added a commit that referenced this issue Jul 9, 2019
@jstedfast
Copy link
Owner

The above commit should work around the IMAP server bug for you. You can test it out by grabbing the latest nuget from https://www.myget.org/feed/mimekit/package/nuget/MailKit

The version will be 2.2.0.11 (I think) when CI finishes building and pushing the resulting package.

Check the myget URL in about an hour or so and it should have the build.

@jstedfast jstedfast added compatibility Compatibility with existing software server-bug The bug appears to be in the server labels Nov 21, 2019
@jstedfast jstedfast added the server/gmx GMX.de/.net/etc label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with existing software server/gmx GMX.de/.net/etc server-bug The bug appears to be in the server
Projects
None yet
Development

No branches or pull requests

2 participants