From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74658: Remove the Mail-Followup-To header when empty Date: Tue, 03 Dec 2024 16:18:06 +0200 Message-ID: <86ttbk26ld.fsf@gnu.org> References: <87iks14qvd.fsf@wolfsden.cz> <87v7w0euel.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74658@debbugs.gnu.org, ~@wolfsden.cz To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 15:19:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tITkH-0001et-60 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 15:19:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tITk3-0004Wi-Ci; Tue, 03 Dec 2024 09:19:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tITjy-0004WO-Vc for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 09:19:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tITjy-0006eH-Ky for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 09:19:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=gUe0WwE+zPuAZamyRirW0jw0/m8YW7RPqmgf4EB3qno=; b=hv9Tswc97I3MlKniy6QYTgysFL5JcWaGzquZO+u4wUlTxYuFzSJ5vMko4Bek5sw3tAELODCUsyy6B016I1Nw8tR2UuANHSLSJbgCpmA0KOajsCYO6+DWh29V8fCX/SvDlceaXnJ6sqJON0jlaOGEvW4nFs6SR+/+jcSDhuBElpwXaY/+msjak6m+Qc3qk1b4RtxMU8fddzRbPL2VCh/JICTc2eZkcUDkj0cVGSH28AN8YohxVrzw7dZz47fx4W4U/oLA/J6me48PEsfdpIY3JG+gGSXA40QXe76WlBjWxrb7QoYN3vmbgxZsHQtHQMz+dhy81Xc2ySQbutli1yczgQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tITjy-0000R6-Fm for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 09:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Dec 2024 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74658-submit@debbugs.gnu.org id=B74658.17332355001593 (code B ref 74658); Tue, 03 Dec 2024 14:19:02 +0000 Original-Received: (at 74658) by debbugs.gnu.org; 3 Dec 2024 14:18:20 +0000 Original-Received: from localhost ([127.0.0.1]:58809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tITjH-0000PZ-QH for submit@debbugs.gnu.org; Tue, 03 Dec 2024 09:18:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tITjF-0000PL-RB for 74658@debbugs.gnu.org; Tue, 03 Dec 2024 09:18:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tITj8-0006af-Ff; Tue, 03 Dec 2024 09:18:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gUe0WwE+zPuAZamyRirW0jw0/m8YW7RPqmgf4EB3qno=; b=Tk2nuv2jPlPkBxFXifpE +QbnKZ/Xjk8d3AfVFORPq/RF5DzW+YVLLSjUFSPY9KXl7PK0z4m3e0mdRqHoI9FbHoVr4iU52E26W rn4SQqtAJtUTRs6kqJ2r3e+T8p2kxVOmKShSO+w67/MNtdfLGS32LvplkJ0MhEyngTJJKmdqTUUCc X2x89h9YDprE3ccOSdQHyxkPZ8JrDzqLxGaYFNPx305goE5oGYvoSPxavjoFlHqYkxzN694wJTfpn mvwoM+580JHSKfUzwnUHgksyUBKosj4yNxK68SnWb4pRkb7JUrE5uVukLIyBK+T/K0QMzHcoKOFe/ zIudqeOUOpY7kA==; In-Reply-To: <87v7w0euel.fsf@gmail.com> (message from Robert Pluim on Tue, 03 Dec 2024 15:02:58 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296370 Archived-At: > Cc: 74658@debbugs.gnu.org > From: Robert Pluim > Date: Tue, 03 Dec 2024 15:02:58 +0100 > > >>>>> On Tue, 03 Dec 2024 00:17:10 +0100, Tomas Volf <~@wolfsden.cz> said: > > Tomas> Tags: patch > Tomas> According to the info manual (message)Mailing Lists, the > Tomas> Mail-Followup-To header should be removed when it is empty: > > >> If there is one, it is left alone. (Except if it’s empty; in that > >> case, the field is removed and is not replaced with an automatically > >> generated one. This lets you disable MFT generation on a per-message > >> basis.) > > Tomas> While the code attempted to do that, the call to `message-remove-header' > Tomas> passed wrong arguments. Since the IS-REGEXP argument was not passed, > Tomas> the HEADER was considered a full header name (if I read the code right) > Tomas> and therefore failed to match (since the code passed in a regexp instead > Tomas> of a fixed string). > > Tomas> The fix is simple, remove the leading ^ and trailing :. > > Yep. I can apply this to master. Maintainers, is adding > Copyright-paperwork-exempt: yes enough here? Or do we need a copyright > assignment from Tomas? "Copyright-paperwork-exempt: yes" is enough. Thanks.