quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] quilt/mail: Fix threading of patch messages


From: Peter Oberparleiter
Subject: [Quilt-dev] [PATCH] quilt/mail: Fix threading of patch messages
Date: Tue, 8 Dec 2015 18:12:03 +0100

Starting with commit 1d659beb ("quilt/mail: Remove procmail dependency")
patch messages no longer refer to the introduction message via the
References header. Also --reply-to no longer adds an In-Reply-To header.

The reason for this behavior is that the sed script used to extract
message header values matches field names in a case sensitive manner.
At the same time the quilt/mail script mixes case when generating and
scanning for the Message-ID header field. As a result the Message IDs of
the introduction message and of messages which are replied to are not
recognized.

Fix this by changing the sed script to match field names in a case
insensitive manner.

Signed-off-by: Peter Oberparleiter <address@hidden>
--- a/quilt/mail.in
+++ b/quilt/mail.in
@@ -90,7 +90,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 -n "/^${header}/I,/^[^[:blank:]]/ { /^${header}/I { 
s/^${header}//Ip; n; }; /^[^[:blank:]]/q; /^$/q; p; }"
 }

 # See RFC 2822 Internet Message Format for how the In-Reply-To and




reply via email to

[Prev in Thread] Current Thread [Next in Thread]