Closed dxdc closed 4 years ago
This pull request https://github.com/rjbs/Email-MIME-ContentType/pull/5 adds support for RFC 2231 (Character Set and Parameter Continuations). Email::MIME::ContentType is used just for parsing structures.
Pull request https://github.com/rjbs/Email-MIME-ContentType/pull/5 was merged and released in Email::MIME::ContentType version 1.020.
So after updating that module, Email::MIME would correctly parse long file names.
But creating new email with long file names via Email::MIME is not supported yet.
Patches for creating long file names are there: https://github.com/rjbs/Email-MIME-ContentType/pull/11 https://github.com/rjbs/Email-MIME/pull/51
Long filenames are allowed per RFC 2231.
For example:
However, these extended filenames are not properly returned via the Email::MIME module (or, appropriate submodule). These extended filenames can also become more complex, since character encoding, etc. can be specified as part of the filename. See RFC 2231 for more details (https://tools.ietf.org/html/rfc2231).
There is another module which appears to handle this properly: http://cpansearch.perl.org/src/MURATAYA/MIME-EcoEncode-0.95/lib/MIME/EcoEncode/Param.pm