Bug#879204: MIME::Words::encode_mimewords: splits in the middle of a multibyte character, invalid MIME

Thorsten Glaser tg at mirbsd.de
Fri Oct 20 12:48:51 UTC 2017


Package: libmime-tools-perl
Version: 5.503-1
Severity: normal

tglase at helpdesk:~$ perl -MEncode -MMIME::Words -e 'print MIME::Words::encode_mimewords(Encode::encode("UTF-8", "Re: Bildungsurlaub für CCC-Fahrt? [THD#1424195]"), Charset => "UTF-8", Field => "Subject") . "\n";'
Re:=?UTF-8?Q?=20Bildungsurlaub=20f=C3?= =?UTF-8?Q?=83=C2=BCr=20CCC?=-Fahrt?=?UTF-8?Q?=20?=[THD#1424195]

Expected output is something along the lines of:

tglase at tglase:~ $ php
<?php
mb_internal_encoding('UTF-8');
echo mb_encode_mimeheader('Subject: Re: Bildungsurlaub für CCC-Fahrt? [THD#1424195]', 'UTF-8', 'Q', "\015\012") . "\n";
Subject: Re: Bildungsurlaub =?UTF-8?Q?f=C3=BCr=20CCC-Fahrt=3F=20=5BTHD=23?=
 =?UTF-8?Q?=31=34=32=34=31=39=35=5D?=


-- System Information:
Debian Release: 7.11
  APT prefers oldoldstable-updates
  APT policy: (500, 'oldoldstable-updates'), (500, 'oldoldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmime-tools-perl depends on:
ii  libconvert-binhex-perl  1.119+pristine-3
ii  libmailtools-perl       2.09-1
ii  perl                    5.14.2-21+deb7u5

libmime-tools-perl recommends no packages.

libmime-tools-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list