From 6b4b013f1884a3b5e67877d65a9f1da598ab4a6f Mon Sep 17 00:00:00 2001 From: Jonathan Tan Date: Tue, 20 Sep 2016 10:17:53 -0700 Subject: mailinfo: handle in-body header continuations Mailinfo currently handles multi-line headers, but it does not handle multi-line in-body headers. Teach it to handle such headers, for example, for this input: From: author Date: Fri, 9 Jun 2006 00:44:16 -0700 Subject: a very long broken line Subject: another very long broken line interpret the in-body subject to be "another very long broken line" instead of "another very long". An existing test (t/t5100/msg0015) has an indented line immediately after an in-body header - it has been modified to reflect the new functionality. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- t/t5100-mailinfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t5100-mailinfo.sh') diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh index 1a5a546230..e173c33f4b 100755 --- a/t/t5100-mailinfo.sh +++ b/t/t5100-mailinfo.sh @@ -11,7 +11,7 @@ test_expect_success 'split sample box' \ 'git mailsplit -o. "$TEST_DIRECTORY"/t5100/sample.mbox >last && last=$(cat last) && echo total is $last && - test $(cat last) = 17' + test $(cat last) = 18' check_mailinfo () { mail=$1 opt=$2 -- cgit v1.2.3