Merge branch 'kd/mailinfo-quoted-string'

An author name, that spelled a backslash-quoted double quote in the
human readable part "My \"double quoted\" name", was not unquoted
correctly while applying a patch from a piece of e-mail.

* kd/mailinfo-quoted-string:
  mailinfo: unescape quoted-pair in header fields
  t5100-mailinfo: replace common path prefix with variable
This commit is contained in:
Junio C Hamano
2016-10-03 13:30:38 -07:00
6 changed files with 159 additions and 33 deletions

5
t/t5100/comment.expect Normal file
View File

@ -0,0 +1,5 @@
Author: A U Thor (this is (really) a comment (honestly))
Email: somebody@example.com
Subject: testing comments
Date: Sun, 25 May 2008 00:38:18 -0700

9
t/t5100/comment.in Normal file
View File

@ -0,0 +1,9 @@
From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001
From: "A U Thor" <somebody@example.com> (this is \(really\) a comment (honestly))
Date: Sun, 25 May 2008 00:38:18 -0700
Subject: [PATCH] testing comments
---
patch

View File

@ -0,0 +1,5 @@
Author: Author "The Author" Name
Email: somebody@example.com
Subject: testing quoted-pair
Date: Sun, 25 May 2008 00:38:18 -0700

9
t/t5100/quoted-string.in Normal file
View File

@ -0,0 +1,9 @@
From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001
From: "Author \"The Author\" Name" <somebody@example.com>
Date: Sun, 25 May 2008 00:38:18 -0700
Subject: [PATCH] testing quoted-pair
---
patch