From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Kahn Gillmor Newsgroups: gmane.emacs.bugs Subject: bug#45631: 27.1; regression: message-forward-ignored-headers no longer applies when forwarding as MIME Date: Tue, 05 Jan 2021 18:25:18 -0500 Message-ID: <87mtxn6k69.fsf@fifthhorseman.net> References: <87mtxq7xmd.fsf@fifthhorseman.net> <87y2h71qj5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24043"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45631@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 05:13:11 2021 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 1kx0C6-0006AE-LU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 05:13:10 +0100 Original-Received: from localhost ([::1]:51898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx0C5-0008Bf-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Jan 2021 23:13:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx0By-0008BR-KQ for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2021 23:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx0By-0005zi-9M for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2021 23:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kx0By-0001LZ-1y for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2021 23:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Kahn Gillmor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2021 04:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45631 X-GNU-PR-Package: emacs Original-Received: via spool by 45631-submit@debbugs.gnu.org id=B45631.16099063675146 (code B ref 45631); Wed, 06 Jan 2021 04:13:01 +0000 Original-Received: (at 45631) by debbugs.gnu.org; 6 Jan 2021 04:12:47 +0000 Original-Received: from localhost ([127.0.0.1]:43194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx0Bj-0001Kw-Ep for submit@debbugs.gnu.org; Tue, 05 Jan 2021 23:12:47 -0500 Original-Received: from [162.247.75.117] (port=38477 helo=che.mayfirst.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx0Bi-0001Ko-8B for 45631@debbugs.gnu.org; Tue, 05 Jan 2021 23:12:46 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1609906365; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=Y3JvVl4cpcAF8xxRijMMy627fsS3vRlPrrHAcbNTOsI=; b=4IfO4qKQ7sppX5W0vfMfjBvJ25v7dJq9uGH6uMytrNjAQPWLCH0jFsNuLRc8YtdyKLFXt LfO/2X0uLct9L1BCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1609906365; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=Y3JvVl4cpcAF8xxRijMMy627fsS3vRlPrrHAcbNTOsI=; b=Y0EqJAO1kW7KFoUsb602vTsrH3MZs67I32Toh9MhJgBy/VFT/MiLH2cOcKWmp8/4dYl2o dkMTB3Dkxov4oJH/mukXo2EozCBxkZj83/Ezm+d0RnBb0cb9sGcv4RLmjG4zqNo6orXPSWg 7Dr8j9m3bvpevkdBYXjpTF+eIzxpI+u2vYcIBamcQzMV6OPJcv90NsS72+xKkLkYLG/AdPu IY40rJ76RoS/ZJCoHjyLuIOUvceWoXuKeptgpt/zVjHzy7QN5yq4+Y3VSYq2dKKkiErIMZR 0T78sZGveQrs1T+xJe8pNXwSOMEi5MR1D7Stf+BlhU/e8BTg9JVov0bE9Njw== Original-Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 59F5AF9A6; Tue, 5 Jan 2021 23:12:45 -0500 (EST) Original-Received: by fifthhorseman.net (Postfix, from userid 1000) id 83BB52084F; Tue, 5 Jan 2021 18:25:19 -0500 (EST) In-Reply-To: <87y2h71qj5.fsf@gmail.com> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQULCQgH AgYVCgkICwIEFgIDAQIeAQIXgAIZARYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJd5Hw3BQkFpJWB AAoJEPIGkReQOOXGDYEA/j0ERjPxDleKMZ2LDcWc/3o5cLFwAVzBKQHppu0Be5IWAP0aeTnyEqlp RTE7M8zugwkhYeUYfYu0BjecDUMnYz6iDLgzBF3kewUWCSsGAQQB2kcPAQEHQK1IuW0GZmcrs2mx CYMl8IHse0tMF8cP7eBNXevrlx2ZiPUEGBYIACYCGwIWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUC XeR7TwUJAiGl/gCBdiAEGRYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXeR7BQAKCRDEDyVU MvKBD7KmAQCHs+7588C4jto6fMje0Nu97zzoppjJM7lrGF2rVnbHvwD+MgmGUbHzPSUrTWnZBQDi /QM595bxNrBA4N1CiXhs2AMJEPIGkReQOOXGpp0BAM7YeBnt/UNvxJAGm4DidSfHU7RDMWe6Tgux HrH21cDkAQC9leNFXJsQ7F2ZniRPHa8CkictcQEKPL8VCWpfe8LbArg4BF3ke5wSCisGAQQBl1UB BQEBB0Cf+EiAXtntQMf51xpqb6uZ5O0eCLAZtkg0SXHjA1Jl 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" Xref: news.gmane.io gmane.emacs.bugs:197408 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Robert-- Thanks for taking a look into this! On Tue 2021-01-05 14:06:54 +0100, Robert Pluim wrote: > I=CA=BCve compared emacs-26 and emacs-27, and the code is the same, which > leads me to suspect something different in your > configuration. 'message-forward-ignored-headers' is applied even when > forwarding as MIME (despite the docstring) hm, the docstring change was recent, apparently in response to #27715 : https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D57fbf0cf7bd4a85f2a= d6f14aa92494545106b887 that's why i assumed there had been a change. > except when 'message-forward-show-mml' is nil, or when it=CA=BCs 'best' a= nd > the forwarded message is either signed or encrypted. Hm, i'm using 'best' for message-forward-show-mml (as the default) and yes, it looks like the issue is that i just noticed it happening when i went to forward a signed message. Maybe it wasn't an issue before because i wasn't forwarding a signed message? I no longer have emacs 26.3 installed so i can't check that handily right now. The message headers (outside of the cryptographic envelope) do *not* affect the digital signature, so they ought to be safe to trim out without invalidating the digital signature. These are the message headers that i want to trim. > Or maybe you=CA=BCre forwarding from inside the *Article* buffer, I think > Gnus behaves differently then. I'm using notmuch-emacs, not gnus, but it reuses a lot of the existing emacs MUA codebase, which is why i'm reporting it here. Do you have a suggestion for how i can apply message-forward-ignored-headers to a signed message? I only want it to apply to headers that aren't covered by the digital signature anyway. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCX/T1XwAKCRDEDyVUMvKB D8i2AP934n1bVOrZ2Zk6bDwAou9wJeAteJtBoJqITFyHEuTtUAD8DkhbSWg/EoMo I715BbhXriECo3VJRD8RYL6SqXx3cAs= =4yZq -----END PGP SIGNATURE----- --=-=-=--