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 <[email protected]>
--- 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


_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to