Package: quilt Version: 0.65-1 Severity: normal Tags: upstream patch Dear Maintainer,
After upgrading the system which updated quilt from version 0.63 to 0.65 the quilt mail subfunction fails to thread the mails correctly. The reason is the upstream removal of the procmail/formail dependency in commit 1d659bebaf3d ("quilt/mail: Remove procmail dependency"). This replaced the Message-ID extraction from the cover letter which was utilizing formail with a sed script. That fails to extract the Message-ID because the mail generator uses Message-Id. formail does not care, but sed certainly does. Changing all occurences of Message-Id to Message-ID cures the issue. -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.16.0-rc1+ (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages quilt depends on: ii bsdmainutils 11.1.2 ii bzip2 1.0.6-8.1 ii diffstat 1.61-1+b1 ii gettext 0.19.8.1-4 ii patch 2.7.6-2 ii perl 5.26.2-5 Versions of packages quilt recommends: ii less 487-0.1 Versions of packages quilt suggests: ii exim4-daemon-light [mail-transport-agent] 4.90.1-4 ii graphviz 2.40.1-3 ii procmail 3.22-26 -- debconf-show failed *** /home/tglx/work/projects/quilt/patches/mail--Use-Message-ID-consistently.patch Subject: mail: Use Message-ID consistently From: Thomas Gleixner <t...@linutronix.de> Date: Mon, 04 Jun 2018 22:09:21 +0200 The Message-ID extraction from the cover letter fails because the message generator uses 'Message-Id' while the extraction uses 'Message-ID'. formail did not care, but the extraction sed magic cares. Use 'Message-ID' consistently all over the place. Fixes: 1d659bebaf3d ("quilt/mail: Remove procmail dependency") Signed-off-by: Thomas Gleixner <t...@linutronix.de> --- quilt/mail.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/quilt/mail.in +++ b/quilt/mail.in @@ -504,7 +504,7 @@ fi introduction="$(gen_tempfile)" ( cat <<-EOF - Message-Id: <$(msgid)> + Message-ID: <$(msgid)> User-Agent: quilt/@VERSION@ Date: $(date --rfc-822) From: ${opt_from:-$opt_sender} @@ -628,7 +628,7 @@ for patch in "${patches[@]}"; do # Make pipes fail if any of their commands fail (requires bash 3): set -o pipefail - ( ( echo "Message-Id: <$(msgid)>" + ( ( echo "Message-ID: <$(msgid)>" awk ' /^$/ { exit } tolower($0) !~ /^(message-id|references|in-reply-to):/ \