Skip to contentSkip to conversation

Issues escaping Froms

DISCUSSION Mark Brown 2 participants 4 messages Sep 21, 2021 – Sep 23, 2021

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

Attempting to fetch [email protected] with b4 am I get a mailbox which is for example interpreted by mutt as:

-> 1 N 09/16 Peter Rosin (1.7K)
2 N C 09/20 Peter Rosin ( 0K) [PATCH] ASoC: pcm512x: Mend accesses to

Due to the fact that the message has a From line in it as well as a
From: but that doesn't get escaped by b4 so mail software interprets it as the start of a new message in the mailbox.

#1 lore raw
Quoted 9 lines · Mark Brown

Attempting to fetch [email protected] with b4 am I get a mailbox which is for example interpreted by mutt as:

-> 1 N 09/16 Peter Rosin (1.7K)
2 N C 09/20 Peter Rosin ( 0K) [PATCH] ASoC: pcm512x: Mend accesses to

Due to the fact that the message has a From line in it as well as a
From: but that doesn't get escaped by b4 so mail software interprets it as the start of a new message in the mailbox.

Unfortunately, the "mbox" files that git expects for "git am" are not the "mbox" files expected by mutt and other MUAs. If we escape the "From " entries as mandated by the format, they don't get unescaped by "git am" and make their way into git commits:

    https://git.kernel.org/torvalds/c/137733d08f4a

There is no working around this, short of saving everything as maildirs.

-K

author
#2 lore raw
Quoted 8 lines · Konstantin Ryabitsev

Unfortunately, the "mbox" files that git expects for "git am" are not the "mbox" files expected by mutt and other MUAs. If we escape the "From " entries as mandated by the format, they don't get unescaped by "git am" and make their way into git commits:

    https://git.kernel.org/torvalds/c/137733d08f4a

There is no working around this, short of saving everything as maildirs.

Hrm, right. That's awesome. There's something fishy going on here somewhere thoguh - I'm also seeing it failing to find the patch in

    [email protected]

which has similar kinds of malformation in the incoming message, though the result ends up different.

#3 lore raw
Quoted 6 lines · Mark Brown
Quoted 1 line

There is no working around this, short of saving everything as maildirs.

Hrm, right. That's awesome. There's something fishy going on here somewhere thoguh - I'm also seeing it failing to find the patch in

    [email protected]

Hmm... this looks like a bug. I'll check it out.

-K