* [BUG b4] encoding issues with single-patch series
@ 2023-06-16 9:22 Erik Schilling
2023-06-16 16:53 ` Konstantin Ryabitsev
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Erik Schilling @ 2023-06-16 9:22 UTC (permalink / raw)
To: tools
Earlier, I sent a patch where I tried to CC Alex Bennée. The generated
mail included the header:
Content-Transfer-Encoding: 7bit
the CC header got correctly escaped, but the mail body contained the CC
with UTF-8 encoding:
Cc: Alex Bennée <alex.bennee@linaro.org>
The mail got dispatched without any complaints, but then was rejected by
linux-gpio with:
<linux-gpio@vger.kernel.org>: host 23.128.96.18[23.128.96.18] said: 550 5.7.1
Content-Policy reject msg: Wrong MIME labeling on 8-bit character texts.
BF:<H 5.99033e-10>; S229768AbjFPGtM (in reply to end of DATA command)
One can reproduce it with:
git clone -b b4/msrv https://github.com/Ablu/libgpiod.git
cd libgpiod
b4 send -o /tmp/test/ --resend v1
# The generated mail includes UTF-8 in the body,
# but has a 7bit header
I did a quick hack to get it resent, but not sure if that is a proper
solution:
--- a/b4/ez.py
+++ b/b4/ez.py
@@ -1581,6 +1581,9 @@ def cmd_send(cmdargs: argparse.Namespace) -> None:
else:
msg.add_header('Cc', b4.format_addrs(pcc))
+ msg.set_charset('utf-8')
+ msg.replace_header('Content-Transfer-Encoding', '8bit')
+
send_msgs.append(msg)
if endpoint:
The weird thing is that some past mails where I also CC'd him,
apparently were sent with the right encoding settings automatically [1]:
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
[1] https://lore.kernel.org/linux-gpio/20230612-crates_io_publish-v1-0-70988ee9a655@linaro.org/raw
It looks like it works for a series but not for a single patch?
- Erik
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [BUG b4] encoding issues with single-patch series
2023-06-16 9:22 [BUG b4] encoding issues with single-patch series Erik Schilling
@ 2023-06-16 16:53 ` Konstantin Ryabitsev
2023-06-16 16:55 ` Kernel.org Bugbot
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Konstantin Ryabitsev @ 2023-06-16 16:53 UTC (permalink / raw)
To: Erik Schilling; +Cc: tools
On Fri, Jun 16, 2023 at 11:22:51AM +0200, Erik Schilling wrote:
> Earlier, I sent a patch where I tried to CC Alex Bennée. The generated
> mail included the header:
>
> Content-Transfer-Encoding: 7bit
>
> the CC header got correctly escaped, but the mail body contained the CC
> with UTF-8 encoding:
>
> Cc: Alex Bennée <alex.bennee@linaro.org>
Interesting. I'll check it out.
bugbot assign to me
-K
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: encoding issues with single-patch series
2023-06-16 9:22 [BUG b4] encoding issues with single-patch series Erik Schilling
2023-06-16 16:53 ` Konstantin Ryabitsev
@ 2023-06-16 16:55 ` Kernel.org Bugbot
2023-06-22 17:22 ` [BUG b4] " Konstantin Ryabitsev
2023-06-22 17:47 ` Kernel.org Bugbot
3 siblings, 0 replies; 5+ messages in thread
From: Kernel.org Bugbot @ 2023-06-16 16:55 UTC (permalink / raw)
To: tools, erik.schilling
Hello:
This conversation is now tracked by Kernel.org Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=217563
There is no need to do anything else, just keep talking.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG b4] encoding issues with single-patch series
2023-06-16 9:22 [BUG b4] encoding issues with single-patch series Erik Schilling
2023-06-16 16:53 ` Konstantin Ryabitsev
2023-06-16 16:55 ` Kernel.org Bugbot
@ 2023-06-22 17:22 ` Konstantin Ryabitsev
2023-06-22 17:47 ` Kernel.org Bugbot
3 siblings, 0 replies; 5+ messages in thread
From: Konstantin Ryabitsev @ 2023-06-22 17:22 UTC (permalink / raw)
To: Erik Schilling; +Cc: tools
On Fri, Jun 16, 2023 at 11:22:51AM +0200, Erik Schilling wrote:
> Earlier, I sent a patch where I tried to CC Alex Bennée. The generated
> mail included the header:
>
> Content-Transfer-Encoding: 7bit
>
> the CC header got correctly escaped, but the mail body contained the CC
> with UTF-8 encoding:
>
> Cc: Alex Bennée <alex.bennee@linaro.org>
I was able to replicate this, thanks.
bugbot assign to me
-K
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: encoding issues with single-patch series
2023-06-16 9:22 [BUG b4] encoding issues with single-patch series Erik Schilling
` (2 preceding siblings ...)
2023-06-22 17:22 ` [BUG b4] " Konstantin Ryabitsev
@ 2023-06-22 17:47 ` Kernel.org Bugbot
3 siblings, 0 replies; 5+ messages in thread
From: Kernel.org Bugbot @ 2023-06-22 17:47 UTC (permalink / raw)
To: tools, erik.schilling, konstantin
Konstantin Ryabitsev writes in commit cee377e23203fd12590316c96ceadae8357e7a77:
Fix wrong CTR header after 8bit cover content is mixed in
When we mix in cover content into the patch that previously only had
7bit data, re-check the new payload and set C-T-R to 8bit if the new
payload is no longer ascii.
Reported-by: Erik Schilling <erik.schilling@linaro.org>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217563
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
(via https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=cee377e23203)
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-22 17:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 9:22 [BUG b4] encoding issues with single-patch series Erik Schilling
2023-06-16 16:53 ` Konstantin Ryabitsev
2023-06-16 16:55 ` Kernel.org Bugbot
2023-06-22 17:22 ` [BUG b4] " Konstantin Ryabitsev
2023-06-22 17:47 ` Kernel.org Bugbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox