[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

Petr Pisar <ppisar@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |CLOSED
         Resolution|---                         |NOTABUG
        Last Closed|                            |2016-04-08 04:47:56



--- Comment #8 from Petr Pisar <ppisar@xxxxxxxxxx> ---
I tried your patch. All the places where Encode-2.80 tests fail are expected
except this one:

To: dankogai@xxxxxxxxx (小飼=Kogai, 弾=Dan)

The original 2.80 code produces:

To: =?UTF-8?Q?dankogai=40dan=2Eco=2Ejp=20=28?=
 =?UTF-8?Q?=E5=B0=8F=E9=A3=BC=3DKogai=2C=20=E5=BC=BE=3DDan?= =?UTF-8?Q?=29?=

The patched 2.80 code produces:

To: dankogai@xxxxxxxxx (
 =?UTF-8?Q?=E5=B0=8F=E9=A3=BC=3DKogai=2C?= =?UTF-8?Q?=E5=BC=BE=3DDan?=)

That means it inserts a space between "(" and "小". This is because splitting
the text into multiple lines happens before calling _encode_q(). The line
splitting code expects all the lines will start and end with encoded-word
(=?...?=) so the line break will be ignored when decoding.

But in this case you have a plain line followed by an encoded line, and in this
case the line break is decoded as a space.

I feel it's not possible to fix Encode-2.80 to restore original behavior
without introducing bugs.

If your Bugzilla installation comes from Fedora's package, please file a bug
against bugzilla component to fix how Bugzilla uses Encode::encode('MIME-Q').

-- 
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