-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Possible problem with parsing Mime Part Boundary #278
Comments
jstedfast
added a commit
that referenced
this issue
Jan 19, 2017
Technically, that mail client is broken... but it is trivial to work around, so now the code works around that issue. |
Great, that was quick! Many thanks! Do you know when a new release will next be available on nuget? |
I was going to try and do another release around the end of the month |
Perfect, Thanks again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently had a misbehaving mail client provide mail headers in the following format:
Note the extra carriage return and space after the Content-Type header.
When using the MimeMessage.Load method MimeKit determined the Boundary to be "
--boundary_0_8ab0e518-760f-4a94-acc0-66f7cdea5c9f
" (it has included the space character from the line below the Content-Type header). This results in MimeKit not detecting any of the Mime parts in the message (which in turn means I cannot process it correctly).However when I relay the message, other mail clients do detect the mime parts and display the message as intended. Which I assume means that they are ignoring the extra line and space after the Content-Type header.
I'm not sure if this means that the extra space character should be included as part of the boundary specifier or not. Unfortunately I couldn't find any information in the relevant RFC's (822, 2045) about how headers should be parsed in this scenario.
If I remove the extra line with the space before calling MessagePart.Load MimeKit detects the other MimeParts and I can process the message properly.
What are your thoughts? Do you think MimeKit should be adding the extra space to the end of the boundary specifier or ignoring the extra line and space?
The text was updated successfully, but these errors were encountered: