Browse Source
Some MUAs mangled a line in a message that begins with "From " to ">From " when writing to a mailbox file and feeding such an input to "git am" used to lose such a line. * jk/mbox-from-line: mailinfo: work around -Wstring-plus-int warning mailinfo: make ">From" in-body header check more robustmaint

6 changed files with 66 additions and 1 deletions
@ -0,0 +1,5 @@ |
|||||||
|
Author: Commit Author |
||||||
|
Email: commit@example.com |
||||||
|
Subject: patch subject |
||||||
|
Date: Sat, 13 Sep 2014 21:13:23 -0400 |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001 |
||||||
|
From: Email Author <email@example.com> |
||||||
|
Date: Sun, 25 May 2008 00:38:18 -0700 |
||||||
|
Subject: [PATCH] email subject |
||||||
|
|
||||||
|
>From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001 |
||||||
|
From: Commit Author <commit@example.com> |
||||||
|
Date: Sat, 13 Sep 2014 21:13:23 -0400 |
||||||
|
Subject: patch subject |
||||||
|
|
||||||
|
patch body |
||||||
|
--- |
||||||
|
patch |
@ -0,0 +1,3 @@ |
|||||||
|
>From the depths of history, we are stuck with the |
||||||
|
flaky mbox format. |
||||||
|
|
@ -0,0 +1,10 @@ |
|||||||
|
From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001 |
||||||
|
From: Author Name <somebody@example.com> |
||||||
|
Date: Sun, 25 May 2008 00:38:18 -0700 |
||||||
|
Subject: [PATCH] testing quoted >From |
||||||
|
|
||||||
|
>From the depths of history, we are stuck with the |
||||||
|
flaky mbox format. |
||||||
|
|
||||||
|
--- |
||||||
|
patch |
Loading…
Reference in new issue