-
-
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
Content-Disposition: filename* vs. Content-Type: name #239
Comments
The problem is that the filename parameter is inside of a quoted string (it's not supposed to be), which means that the charset is parsed as |
I've fixed the code to work around this issue. The plan is to release a new version to nuget.org this weekend. |
Thank you. |
FTR, @cyberangel Your content id is wrong. |
This was copied without change, so whatever the Content-ID was there was copied with it. |
Hello.
First of all thank you for your excellent library for handling MIME. It saves us a lot of headache parsing e-mails.
I'm having an issue with file attachments with names encoded in UTF-8, as in this example:
The filename is supposed to be "SBD Škodovák.jpg" and the Content-Type.Name properly decodes the quoted string.
But the ContentDisposition.FileName decodes as "SBD Škodovák.jpg"". I see it is URL encoded ->
"utf-8''SBD%20%C5%A0kodov%C3%A1k%2Ejpg" -> HttpUtility.UrlDecode -> "utf-8''SBD Škodovák.jpg".
Clearly there is something amiss and I've modified my program to use The Content-Type.Name property instead.
But I would like to hear your opinion - is it a bug in MimeKit.ContentDisposition or is the client composing the message at fault?
Thanks.
Honza
The text was updated successfully, but these errors were encountered: