Bug#1146308: marked as pending in pkg-perl-tools
Edmund Lodewijks
noreply at salsa.debian.org
Mon Aug 31 11:20:41 BST 2026
Control: tag -1 pending
Hello,
Bug #1146308 in pkg-perl-tools reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:
https://salsa.debian.org/perl-team/modules/packages/pkg-perl-tools/-/commit/64c179b3ebf0650479954289a4e114ba6857cea8
------------------------------------------------------------------------
gen-itp: encode only the display name in the From: header
encode("MIME-Header", ...) was applied to the whole `Maintainer` string. This caused two issues.
1. The encoded-word swallows the `angle-addr`, so the generated `From:` line carries no address any parser can see. RFC 2047 section 5 allows an encoded-word in the `phrase` of an address, but nowhere inside an `addr-spec`, precisely because MTAs do not decode MIME before routing emails.
2. The `Maintainer` string is bytes, so `encode()` treats each byte as a character and a non-ASCII name comes out double-encoded: "Jörg" becomes "Jörg". (Note that the `Owner:` field four lines below already decodes it first.)
Pure-ASCII names were encoded too, which is legal but leaves the header unreadable for no gain (you can't just read an email on disk anymore, if you wanted to do that).
This patch adds `mime_encode_address()`, which:
- splits the phrase from the `angle-addr`,
- decodes to characters, and
- encodes the phrase only when it is not ASCII.
- an ASCII phrase containing RFC 5322 specials (dot, comma, colon...) is quoted instead, to keep it readable for the human eye (again, in case you check the raw email).
The thirteen ITPs I generated between 2026-08-26 and 2026-08-31 all had to have their From: corrected by hand before I could send them.
Closes: #1146308
------------------------------------------------------------------------
(this message was generated automatically)
--
Greetings
https://bugs.debian.org/1146308
More information about the pkg-perl-maintainers
mailing list