Subject: | Encoded header glued together in one string |
Hello!
It seems to me there is a bug in MIME::Head module.
Suppose I want to build a new MIME::Entity object and pass some encoded
header fields, for example:
To: =?utf-8?B?0KDQsNCx0L7RgtCwIDxkaW1hQGFkcml2ZXIucnU
+LCBJY2VTdGFyIDxpY2VzdGFyQGluYm94LnJ1?=
=?utf-8?B?Piwg0J/RgNC40YjQtdC70LXRhiA8YWxpZW4uY29zbW9zQGdtYWlsLmNvbT4=?=
Here are two lines, the second line starts from =?utf-8?B? but when I
stringify an entity all headers become single-line and not all mail
clients can parse such result.
RFC 2047 says:
While there is no limit to the length of a multiple-line header field,
each line of a header field that contains one or more 'encoded-word's
is limited to 76 characters.
So, is this a limitation or bug?