Bug#1041638: bugs.debian.org: the b.d.o mail sofware doesn't parse the "To:" header correctly, generating incorrect addresses

2023-07-22 Thread Don Armstrong
Control: retitle -1 RFC1522 parsing doesn't re-escape commas

Thanks for the report.

On Fri, 21 Jul 2023, Vincent Lefevre wrote:
> For bug 1041631, I replied to a mail, and the headers were:

[...]

> To: =?iso-8859-1?Q?Preu=DFe=2C?= Hilmar 

[...]

> To: =?UTF-8?Q?Preu=C3=9...@buxtehude.debian.org,
> ?= Hilmar 

It failed the comma and then went through address expansion.

For future me: the test for this should be that:

From: =?UTF-8?B?UHJldcOfZSwgSGlsbWFy?= 

gets round tripped to the same (or uses quotation marks to escape the
comma). [Use a different address in testing.]


-- 
Don Armstrong  https://www.donarmstrong.com

"I always tend to assume there's an infinite amount of money out
there." "There might as well be, [...] but most of it gets spent on
pornography, sugar water, and bombs. There is only so much that can be
scraped together for particle accelerators."
 -- Neal Stephenson _Anathem_ p262



Bug#1041638: bugs.debian.org: the b.d.o mail sofware doesn't parse the "To:" header correctly, generating incorrect addresses

2023-07-21 Thread Vincent Lefevre
Package: bugs.debian.org
Severity: important

For bug 1041631, I replied to a mail, and the headers were:

To: "Preuße, Hilmar" 
Cc: 1041...@bugs.debian.org

with the "To:" encoded as:

To: =?iso-8859-1?Q?Preu=DFe=2C?= Hilmar 

This is correct and can be visible at

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041631;mbox=yes;msg=15

But in the copy from
lists-bugs=1041...@bendel.debian.org, the "To:" became:

To: =?UTF-8?Q?Preu=C3=9...@buxtehude.debian.org,
?= Hilmar 

which is completely wrong!

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041631;msg=15
is not correct either:

To: Preuße, Hilmar 

where the quotes (needed due to the unencoded comma) are missing.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)