SHA256
1
0
forked from pool/quilt
quilt/mail-fix-patch-set-threading.patch

32 lines
1.2 KiB
Diff
Raw Normal View History

From: Jean Delvare <jdelvare@suse.de>
Date: Fri, 14 Apr 2017 09:07:51 +0200
Subject: mail: Fix patch set threading
Git-commit: 360b85e1f6b6d1aff5ada942fcee816e1ad7a13c
Patch-mainline: yes
Let patches reference the introduction message so that the patch set
is properly threaded by MUA. This used to work but was broken by
accident.
This fixes bug #50775:
https://savannah.nongnu.org/bugs/index.php?50775
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 1d659bebaf3d ("quilt/mail: Remove procmail dependency")
Tested-by: Okash Khawaja <okash.khawaja@gmail.com>
Acked-by: Kent R. Spillner <kspillner@acm.org>
diff --git a/quilt/mail.in b/quilt/mail.in
index 046b502..80fabe8 100644
--- a/quilt/mail.in
+++ b/quilt/mail.in
@@ -95,7 +95,7 @@ extract_header_value()
# Long Header Fields may span multiple lines, in which case CRLF
# is followed by space or tab (RFC 2822)
- sed -n "/^${header}/,/^[^[:blank:]]/ { /^${header}/ { s/^${header}//p; n; }; /^[^[:blank:]]/q; /^$/q; p; }"
+ sed -ne "/^${header}/I,/^[^[:blank:]]/ { /^${header}/I { s/^${header}//I; p; n; }; /^[^[:blank:]]/q; /^$/q; p; }"
}
# See RFC 2822 Internet Message Format for how the In-Reply-To and