On Monday 28 March 2016 19:32:58 David E. Wheeler wrote:
Show quoted text> On Mar 27, 2016, at 6:00 PM, Pali via RT <bug-Encode@rt.cpan.org> wrote:
> > This looks correct.. or where do you see problem?
>
> The test passed for like 8 years and suddenly started failing. Did
> something change in the MIME-Q encoder? Only change I see matching
> “MIME-Q" in Changes dates from 2009.
Yes, finally after years in Encode version 2.83 I fixed
Encode::MIME::Header package to correctly encode and decode strings...
Show quoted text> I can probably change the test to use encode instead of its own
> regex. It’s just odd that it started breaking after all these years.
Beware that parsing some of email headers is not easy by regexes...
Show quoted text> > Looks like that test try to encode whole "from" and "to" headers.
> > That would produce incorrect email. Only phrase part(s) of "from"
> > and "to" headers must be MIME encoded -- not email address itself.
>
> Good to know, thanks.
>
> David