[Bug 1305061] perl-Encode-2.80 breaks sending email by bugzilla

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1305061



--- Comment #5 from Sjoerd Mullender <sjoerd@xxxxxxx> ---
Created attachment 1144849
  --> https://bugzilla.redhat.com/attachment.cgi?id=1144849&action=edit
possible patch to fix the problem

Here is a patch that I hope fixes the problem.  I haven't tried it out for
real, but the reported failure when I run "make test" looks like it does the
right thing.

What the code did before I intervened is to take the whole header value (i.e.
everything after the first colon) and encode it in its entirety as UTF-8 quoted
printable.  What I did instead is to take that complete value, split it on
white space, and for each chunk check whether it is pure ASCII (range ! to ~)
and if so, pass it unchanged.  Otherwise use the old code to encode the piece. 
Then at the end, join all the pieces (encoded and unchanged) with a space
between them.

A proper Perl programmer might want to take a look whether this is any good.

The code is based on the patched source from perl-Encode-2.80-4.fc23.src.rpm
(i.e., I ran rpmbuild -bp).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux