[RFC/PATCH 2/3] mailinfo: correct malformed test example
From: Jonathan Tan <hidden>
Date: 2016-09-16 17:37:43
Subsystem:
the rest · Maintainer:
Linus Torvalds
An existing sample message (0015) in the tests for mailinfo contains an indented line immediately after an in-body header (without any intervening blank line). Correct this by adding the blank line, in preparation for a subsequent patch that will treat such indented lines as RFC 2822 continuation lines (instead of as part of the commit message). To ensure that non-indented lines immediately after an in-body header are still treated correctly (now and in the future), 0008 has been updated to test both the case when in-body headers are used and the case when they are not used. Signed-off-by: Jonathan Tan <redacted> --- t/t5100/info0008--no-inbody-headers | 5 +++++ t/t5100/msg0008--no-inbody-headers | 6 ++++++ t/t5100/msg0015--no-inbody-headers | 1 + t/t5100/patch0008--no-inbody-headers | 0 t/t5100/sample.mbox | 1 + 5 files changed, 13 insertions(+) create mode 100644 t/t5100/info0008--no-inbody-headers create mode 100644 t/t5100/msg0008--no-inbody-headers create mode 100644 t/t5100/patch0008--no-inbody-headers
diff --git a/t/t5100/info0008--no-inbody-headers b/t/t5100/info0008--no-inbody-headers
new file mode 100644
index 0000000..e8a2951
--- /dev/null
+++ b/t/t5100/info0008--no-inbody-headers@@ -0,0 +1,5 @@ +Author: Junio C Hamano +Email: junio@kernel.org +Subject: another patch +Date: Fri, 9 Jun 2006 00:44:16 -0700 +
diff --git a/t/t5100/msg0008--no-inbody-headers b/t/t5100/msg0008--no-inbody-headers
new file mode 100644
index 0000000..d6e950e
--- /dev/null
+++ b/t/t5100/msg0008--no-inbody-headers@@ -0,0 +1,6 @@ +From: A U Thor <a.u.thor@example.com> +Subject: [PATCH] another patch +>Here is an empty patch from A U Thor. + +Hey you forgot the patch! +
diff --git a/t/t5100/msg0015--no-inbody-headers b/t/t5100/msg0015--no-inbody-headers
index be5115b..44a6ce7 100644
--- a/t/t5100/msg0015--no-inbody-headers
+++ b/t/t5100/msg0015--no-inbody-headers@@ -1,3 +1,4 @@ From: bogosity + - a list - of stuff
diff --git a/t/t5100/patch0008--no-inbody-headers b/t/t5100/patch0008--no-inbody-headers
new file mode 100644
index 0000000..e69de29
diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox
index 8b2ae06..ba8b208 100644
--- a/t/t5100/sample.mbox
+++ b/t/t5100/sample.mbox@@ -656,6 +656,7 @@ Subject: check bogus body header (from) Date: Fri, 9 Jun 2006 00:44:16 -0700 From: bogosity + - a list - of stuff ---
--
2.10.0.rc2.20.g5b18e70