Bug#1146308: dpt-gen-itp: From: header wraps the whole address in an RFC 2047 encoded-word
gregor herrmann
gregoa at debian.org
Mon Aug 31 23:22:11 BST 2026
On Mon, 31 Aug 2026 12:15:43 +0200, Edmund Lodewijks wrote:
>While creating thirteen ITP messages over the last week, I noticed that
>`dpt gen-itp` emits a `From:` header in which the encoded-word covers the
>entire address, and not just the display name:
>
> From: =?UTF-8?B?RWRtdW5kIExvZGV3aWprcyA8ZWRtdW5kQHByb3RlYW1haWwuY29tPg==?=
Ack, encoding the whole From: field is a bit silly.
>A second problem appears with a non-ASCII name. $changelog->{Maintainer} is a
>byte string, so encode() re-encodes it as though it were characters:
That's surprising, because this encoding stuff was added by a team
member with an 'é' in their first name, and I'm sure they wouldn't
have liked their name to be double-encoded.
But yay, maybe something has changed since then …
>Results:
>
> Edmund Lodewijks <edmund at proteamail.com> unchanged
> Jörg Müller <j at example.org> =?UTF-8?B?SsO2cmcgTcO8bGxlcg==?= <j at example.org>
> Foo Bar Jr., Ltd <a at b.com> "Foo Bar Jr., Ltd" <a at b.com>
> gregoa at debian.org unchanged
> <solo at example.com> unchanged
Thanks for the patch and especially for the test runs.
MR applied, will be in the next upload.
(And is available from now on for everybody running dpt from Git, cf.
https://manpages.debian.org/unstable/pkg-perl-tools/dpt-config.5.en.html
)
Cheers,
gregor
--
.''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20260901/bc571793/attachment.sig>
More information about the pkg-perl-maintainers
mailing list