Bug#907891: perl: MIME-Q (RFC2047 eMail header) encoding broken since post-stretch

Russ Allbery rra at debian.org
Tue Sep 4 04:16:23 BST 2018


Thorsten Glaser <t.glaser at tarent.de> writes:

> This is true, but the encoder API must normally, if it requires the
> name of the header to *not* be part of the to-be-encoded string, have
> a provision for the caller to provide the length of it (PHP’s does,
> you can have the header name inline or separate passing its length).

Ah, yes, good point.

> AIUI, the encode('MIME-Q', …) API doesn’t, so it must cope with
> the leading header field (actually, it must *require* it).

Yeah, I think you've convinced me that the correct fix would be to
document that the encoding interface has to be given the entire RFC 5322
header field (and then fix it to do the right thing in that case), given
the line length limits.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>




More information about the Perl-maintainers mailing list