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