-
Notifications
You must be signed in to change notification settings - Fork 30
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
filename() is no longer decoded since 1.949 #76
Comments
I would be grateful if you could answer. @dlucredativ @rjbs |
I did not indend to break someone's use case. However, unless I am missing some RFC, one cannot expect
|
Yes, Content-Type's name parameter does not contain RFC 2047 encoded strings which means that file name As @dlucredativ pointed UNICODE strings may be in Content-Disposition's filename attribute and encoded according to RFC 2231. Email::MIME should be enable to correctly use Content-Disposition's filename attribute in $email->filename method and correctly decode it. If you have special requirements to violate standards, you have to do it in your application code. In my opinion generic library should not do it. Also it does not generate Content-Type's name attribute against standard. In past I implemented support to correctly generate Content-Type's name and Content-Disposition's filename attributes in Email::MIME, Content-Type's name should be always only subset of 7-bit ASCII and UNICODE strings are automatically "downgraded" to 7-bit ASCII. |
Thanks to both of you for your detailed explanations. I understand that the behavior has changed, but it has been changed for the better. I will try to deal with this on the application side. I would like to continue using Email::MIME and Email::Stuffer. Thank you very much! |
Hello.
Is this the correct behavior?
Has the specification changed?
I think this has an effect.
94e3034
Thanks,
The text was updated successfully, but these errors were encountered: