diff options
author | Eric Wong <e@80x24.org> | 2016-06-05 04:46:40 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-06 11:14:43 -0700 |
commit | c88098d7f19c6322fbd911bb89e2efd246bf75c4 (patch) | |
tree | 99fce8afe1374149c63f69c6185d7cdbdd958952 /t/t5100 | |
parent | pretty: support "mboxrd" output format (diff) | |
download | tgif-c88098d7f19c6322fbd911bb89e2efd246bf75c4.tar.xz |
mailsplit: support unescaping mboxrd messages
This will allow us to parse the output of --pretty=mboxrd
and the output of other mboxrd generators.
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100')
-rw-r--r-- | t/t5100/0001mboxrd | 4 | ||||
-rw-r--r-- | t/t5100/0002mboxrd | 5 | ||||
-rw-r--r-- | t/t5100/sample.mboxrd | 19 |
3 files changed, 28 insertions, 0 deletions
diff --git a/t/t5100/0001mboxrd b/t/t5100/0001mboxrd new file mode 100644 index 0000000000..494ec554b9 --- /dev/null +++ b/t/t5100/0001mboxrd @@ -0,0 +1,4 @@ +From the beginning, mbox should have been mboxrd +>From escaped +From not mangled but this line should have been escaped + diff --git a/t/t5100/0002mboxrd b/t/t5100/0002mboxrd new file mode 100644 index 0000000000..71343d41f2 --- /dev/null +++ b/t/t5100/0002mboxrd @@ -0,0 +1,5 @@ + >From unchanged + From also unchanged +no trailing space, no escaping necessary and '>' was intended: +>From + diff --git a/t/t5100/sample.mboxrd b/t/t5100/sample.mboxrd new file mode 100644 index 0000000000..79ad5ae0e7 --- /dev/null +++ b/t/t5100/sample.mboxrd @@ -0,0 +1,19 @@ +From mboxrd Mon Sep 17 00:00:00 2001 +From: mboxrd writer <mboxrd@example.com> +Date: Fri, 9 Jun 2006 00:44:16 -0700 +Subject: [PATCH] a commit with escaped From lines + +>From the beginning, mbox should have been mboxrd +>>From escaped +From not mangled but this line should have been escaped + +From mboxrd Mon Sep 17 00:00:00 2001 +From: mboxrd writer <mboxrd@example.com> +Date: Fri, 9 Jun 2006 00:44:16 -0700 +Subject: [PATCH 2/2] another with fake From lines + + >From unchanged + From also unchanged +no trailing space, no escaping necessary and '>' was intended: +>From + |