From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#45631: 27.1; regression: message-forward-ignored-headers no longer applies when forwarding as MIME Date: Wed, 06 Jan 2021 11:31:25 +0100 Message-ID: <878s961hmq.fsf@gmail.com> References: <87mtxq7xmd.fsf@fifthhorseman.net> <87y2h71qj5.fsf@gmail.com> <87mtxn6k69.fsf@fifthhorseman.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13671"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45631@debbugs.gnu.org To: Daniel Kahn Gillmor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 11:32:29 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 1kx67A-0003Q2-Cc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 11:32:28 +0100 Original-Received: from localhost ([::1]:51394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx679-0003AO-D2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 05:32:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx66k-0003A0-49 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 05:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx66j-0000Ln-TA for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 05:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kx66j-000507-Ou for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 05:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2021 10:32: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.160992909619191 (code B ref 45631); Wed, 06 Jan 2021 10:32:01 +0000 Original-Received: (at 45631) by debbugs.gnu.org; 6 Jan 2021 10:31:36 +0000 Original-Received: from localhost ([127.0.0.1]:43517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx66K-0004zT-HO for submit@debbugs.gnu.org; Wed, 06 Jan 2021 05:31:36 -0500 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:41139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx66I-0004zG-Kr for 45631@debbugs.gnu.org; Wed, 06 Jan 2021 05:31:35 -0500 Original-Received: by mail-wr1-f42.google.com with SMTP id a12so1928326wrv.8 for <45631@debbugs.gnu.org>; Wed, 06 Jan 2021 02:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=0yIUn1uJPtkOQSv5w+9RcksfuJzYhlGAZryws6T4qM0=; b=gWMFD2iannOR1+AzG9JAWEOowqIgy8pvJjReLDia3f4eWmk2W76xmr1w4rJ7Oxu9ZH Z0F16geQtIJx+s7KFix6JgEEilVVX06zUjmBXE5DBFxzz5DJnl5tpEdyYiPnMOWxcXZI FpmuazBpDA54w6Q5LeHwINwQQflOIkHJTaV6eGLcgbvdaD2KS7Z91zYf4nCqjLxq01e4 XfMmvywVvsHdcw25+qfXYeXLuZrjnlgC4+y8q0/Ic58lBqtqspzPQ7VGs82VHCTMV0Gk +pBXQfqi6+W6ur4+9i3ysFg7+G9DlLUsxPC2BXvfwcRNnSdszu2sMSQ+YgA+yyY1gSJY b+NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=0yIUn1uJPtkOQSv5w+9RcksfuJzYhlGAZryws6T4qM0=; b=I39uuSz5oiYjdLDL2RbDWotEiEHTG2F0kSDZVA9hFyXWnUpiM7qdo7rvqRGjEVC3t9 H8ZgrA0vTC8HCCoyQfWdrPlHzls7ZbZ8AhdHU8qU8fzLywUd0garrjd82emUswLjUY97 L7APnWdq/NFvbrUIcH+v+JIdxsbBXliwN8D8/p+XTecl4jZRSXg4E9jt4sKtFL7bj/jx JQKbjQS1ihD7XmsTH+7b8nrOkyR8OygUWqxwwed5x0pRf+LrGo1AcDep8nhFpDHRmZxK Duc4esaiOX8NfJp3WXL2yncyu2EwzNqPv5fGzsaZ7F7N2ckdU+3S7E3U9zUU3RO+Qm5I 9fBg== X-Gm-Message-State: AOAM533+eUTTZmN1aDHHvQLcoIhg/B32TLIVp6u50hh2MDkv0MvBs7+K x6/RM/E2LTzOirRVodL1cVSAkxkta+k= X-Google-Smtp-Source: ABdhPJw1WYtxcVH47gPVmNzxCuig7iM363wAUeRDVyeK36Ov5eLW7dgFsD0rXTlpHB/gqRzwy4gttw== X-Received: by 2002:a05:6000:10c4:: with SMTP id b4mr3742514wrx.170.1609929088422; Wed, 06 Jan 2021 02:31:28 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id s1sm2626633wrv.97.2021.01.06.02.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 02:31:27 -0800 (PST) In-Reply-To: <87mtxn6k69.fsf@fifthhorseman.net> (Daniel Kahn Gillmor's message of "Tue, 05 Jan 2021 18:25:18 -0500") 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:197411 Archived-At: Daniel Kahn Gillmor writes: > 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=3D57fbf0cf7bd4a85f= 2ad6f14aa92494545106b887 > > that's why i assumed there had been a change. > Documentation lags implementation, as always :-) >> except when 'message-forward-show-mml' is nil, or when it=CA=BCs 'best' = and >> 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. I think setting message-forward-show-mml to t will do what you want, then message won't bother to check if the message is signed/encrypted, and will thus apply message-forward-ignored-headers. Robert