GNU bug report logs - #78448
30.1; mml: Produce Unobtrusive Signatures

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,gnus; Reported by: Daniel Kahn Gillmor <dkg@HIDDEN>; dated Fri, 16 May 2025 03:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 78448 <at> debbugs.gnu.org:


Received: (at 78448) by debbugs.gnu.org; 28 May 2025 14:13:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 28 10:13:29 2025
Received: from localhost ([127.0.0.1]:54427 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uKHX6-0007j9-VI
	for submit <at> debbugs.gnu.org; Wed, 28 May 2025 10:13:29 -0400
Received: from che.mayfirst.org ([162.247.75.118]:44719)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dkg@HIDDEN>)
 id 1uKHX3-0007ir-HI
 for 78448 <at> debbugs.gnu.org; Wed, 28 May 2025 10:13:26 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple;
 d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019;
 t=1748441604; h=from : to : cc : subject : in-reply-to : references :
 date : message-id : mime-version : content-type : from;
 bh=Hwc1hGnHX6esmfzwfvJ+oXYv9cm5mbfkHDLFyVpoG4A=;
 b=CV3kzXSDSr83N5Vu/fYCwMhM4E1kbp0lTXXhdAvYDts//4wYekeu1FmOBRV04y1gMRPIT
 HFheqYT7BCpyR++BA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net;
 i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1748441604; h=from : to
 : cc : subject : in-reply-to : references : date : message-id :
 mime-version : content-type : from;
 bh=Hwc1hGnHX6esmfzwfvJ+oXYv9cm5mbfkHDLFyVpoG4A=;
 b=lvREiNyjwnkgk2Vi889/Y33yfstOTf68VaEoG9y808Zae0GAVv93dWShOyYuI1JCPrk/p
 3AbiqLwi4afOjDlXWXDsJaqBYnmHmvRqTdmzqAUc653fdWEOQtqaPr2Py5Hp9RARhadznsE
 q/CdaW8bDv6cZFdkJVoADIJCnnMw+zwcw6/93E5gmfoGZPBmQ8gfcgz7P4mhGPAc0jDv9Go
 dyunVKZijFjvEi/ZMLT55aX+kgqog4bGtvK8YNWKz0ahp1Pdg6zh+hQE7gHB6ohQ+RaHB5M
 PV6UEEEZZAGOdaFXKfjYBdgUkiwSbn54zNHw7JKpGMVCWogXMMAuu2h9kS4A==
Received: from fifthhorseman.net (AMERICAN-CI.ear2.NewYork6.Level3.net
 [4.59.214.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature ECDSA (secp384r1))
 (No client certificate requested)
 by che.mayfirst.org (Postfix) with ESMTPSA id 40F16F9B1;
 Wed, 28 May 2025 10:13:24 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000)
 id 9AA9D13F6AD; Wed, 28 May 2025 10:07:25 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@HIDDEN>
To: rms@HIDDEN, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#78448: 30.1; mml: Produce Unobtrusive Signatures
In-Reply-To: <E1uKG8r-0008CY-EY@HIDDEN>
References: <87a57dciom.fsf@HIDDEN> <86v7pzv8z4.fsf@HIDDEN>
 <E1uKG8r-0008CY-EY@HIDDEN>
Autocrypt: addr=dkg@HIDDEN; prefer-encrypt=mutual; keydata=
 xjMEZXEJyxYJKwYBBAHaRw8BAQdA5BpbW0bpl5qCng/RiqwhQINrplDMSS5JsO/YO+5Zi7HNFzxk
 a2dAZmlmdGhob3JzZW1hbi5uZXQ+wsARBBMWCgB5AwsJB0cUAAAAAAAeACBzYWx0QG5vdGF0aW9u
 cy5z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cMIValwphUm7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
Date: Wed, 28 May 2025 10:07:25 -0400
Message-ID: <87frgorfqa.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-=";
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78448
Cc: eric@HIDDEN, 78448 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Sig: t=p; b=iHUEARYKAB0WIQRjrBGOWy5dZsiKhad4C4VO2cK0lgUCaDcYnQAKCRB4C4VO2cK0
 ljPIAQCxFYjIxCAHPWIqf1m4QC6Rof8i+HlhFJmV0rpx0RjWeAEAjNQM01iZJSo4
 hV2sXXh98n137yEwZjHGV8DoEmVEIw0=
From: Daniel Kahn Gillmor <dkg@HIDDEN>
To: rms@HIDDEN, Eli Zaretskii <eliz@HIDDEN>
Cc: eric@HIDDEN, 78448 <at> debbugs.gnu.org
Subject: Re: bug#78448: 30.1; mml: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3AAAKbgD+K1MZXnRKPdmA8DgNysyGRZY8cSVH
 HQcC7ZAAtV3i2+wA/0CyOYrbFYbyTRALgoERR07OHFoP+fJopQLMNQARVUELzjgEZ4qN+RIKKwYB
 BAGXVQEFAQEHQDTGlR+Qmn334e+bPqvojJVdFsiBf0leAAHP+ESqop8NAwEIB8LAAAQYFgoAcgWC
 Z4qN+QkQu36RAUlea/dHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnA5Lw
 b3wOOcoodImuVNw4PYq1U65FDC1Q2JMFIcJXqF0CmwwWIQTUdwQMcMIValwphUm7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
Date: Wed, 28 May 2025 10:07:25 -0400
Message-ID: <87frgorfqa.fsf@HIDDEN>
Content-Type: text/plain; hp="clear"

On Wed 2025-05-28 08:44:21 -0400, Richard Stallman wrote:
> [ dkg wrote: ]
>   > > i want to be able to produce an "Unobtrusive Signature" using
>   > > OpenPGP as described in
>   > > https://datatracker.ietf.org/doc/draft-gallagher-email-unobtrusive-signatures/
>
> Can GPG do this job also?  If so, we should by default use GPG to do
> this, unless the user specifies a different command to use.

The proposed patch series explicitly relies on emacs's epg to make the
actual signature.  epg is an emacs library to use GPG.  So i think what
you're asking for is already being done in this series.

For background: GPG typically does not handle e-mails directly.  Rather,
the mail user agent (MUA) needs to figure out how to modify the pending
e-mail message to be able to feed it into GPG as a text or binary
document to make an OpenPGP signature; then the MUA has to restructure
the message again to ship both the substance and the signature into a
single e-mail message.

Regards,

        --dkg

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.

Message received at 78448 <at> debbugs.gnu.org:


Received: (at 78448) by debbugs.gnu.org; 28 May 2025 12:44:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 28 08:44:35 2025
Received: from localhost ([127.0.0.1]:51836 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uKG95-0004vw-71
	for submit <at> debbugs.gnu.org; Wed, 28 May 2025 08:44:35 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35440)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rms@HIDDEN>) id 1uKG8y-0004ua-MK
 for 78448 <at> debbugs.gnu.org; Wed, 28 May 2025 08:44:32 -0400
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 <rms@HIDDEN>)
 id 1uKG8r-0008DJ-RU; Wed, 28 May 2025 08:44:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=KqZHMYiPaQN26L0e4WYIeZffW5UmKrCpHINfEXQQx44=; b=C2szo6za3rD/
 n28EKuSDQazON4vfKYrqjxSLT+qA6ms/Z/5Hx931SZHn9ldRkZovZ+aZ4+BVUK7QT4csmkug8DqmK
 nIPLir24qBHFXpaUJC6Ok5uqIehm8EG8WY/nmfsim7xVUJISV92Zijoyvsjuu8ky6C0YJ/H6j2eFr
 QHdTDmkrOJcyKHChX6JoFv7SdDtdYby3O5RubwZ/7DSUA1r6r2B5XFOeEoBH83LkNsMTey9T44DHA
 UIjjVbJHm5LRflzp5BiDta3OjUbxqvhJZ1vN2SwI4FRqEYdjMr4k0QEHq6YdVbzVQuFqb32i0nBKv
 NwYpKPeU0FYPDRCnpK3uoQ==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1uKG8r-0008CY-EY; Wed, 28 May 2025 08:44:21 -0400
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <86v7pzv8z4.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 17
 May 2025 13:15:43 +0300)
Subject: Re: bug#78448: 30.1; mml: Produce Unobtrusive Signatures
References: <87a57dciom.fsf@HIDDEN> <86v7pzv8z4.fsf@HIDDEN>
Message-Id: <E1uKG8r-0008CY-EY@HIDDEN>
Date: Wed, 28 May 2025 08:44:21 -0400
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78448
Cc: eric@HIDDEN, 78448 <at> debbugs.gnu.org, dkg@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > i want
  > > to be able to produce an "Unobtrusive Signature" using OpenPGP as
  > > described in
  > > https://datatracker.ietf.org/doc/draft-gallagher-email-unobtrusive-signatures/

Can GPG do this job also?  If so, we should by default use GPG to do
this, unless the user specifies a different command to use.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.

Message received at 78448 <at> debbugs.gnu.org:


Received: (at 78448) by debbugs.gnu.org; 20 May 2025 18:47:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 20 14:47:08 2025
Received: from localhost ([127.0.0.1]:35506 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uHRzX-00043K-T4
	for submit <at> debbugs.gnu.org; Tue, 20 May 2025 14:47:08 -0400
Received: from che.mayfirst.org ([2001:470:1:116::7]:40759)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dkg@HIDDEN>)
 id 1uHRzV-00042r-00
 for 78448 <at> debbugs.gnu.org; Tue, 20 May 2025 14:47:06 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple;
 d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019;
 t=1747766823; h=from : to : subject : in-reply-to : references : date
 : message-id : mime-version : content-type : from;
 bh=mEdt/yz9/NC28PGrk1LUoILO8O/gdxqPAV/kIcxjzQg=;
 b=I01ItZFd44CoQw8y6H7tVkwwBrstjf4Kc8P5pz7yfb7mxZmSLJZrauKNwHGfL4YwjM8T0
 Tf4waBpNV/m84tZDw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net;
 i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1747766823; h=from : to
 : subject : in-reply-to : references : date : message-id :
 mime-version : content-type : from;
 bh=mEdt/yz9/NC28PGrk1LUoILO8O/gdxqPAV/kIcxjzQg=;
 b=RZN1FRySrKqeVpzueHMAjkJo4kNS0Cr7xXhFVxWOKecWnLDIXOxnn1JzzqNIPu9TMghM9
 +PjAo0ATlS+Ra7oR7CHxTMAkwzp0cHZsjAw/mxE8c9lqua7ouImd0XOnY1XnAtSEq4KsuDy
 SB2++f1QAbCGD4UKTa0rR6KN3nqpw6IzhSTLPdg/hGUDVUMKNv5lnqdXzP7mcjRy0b9mNz+
 HYFf5IDPVUntCABLk2kb7HmpKVN2Ty8VKdrCKJjbkpjcuSxMN+mMeO67CWCekr/bGDE7jvd
 BmCN30X14oi7jtENgDnCTY3C9ozghQdlJ4pTuLmaq8C+5rKscHxOYVawTXiQ==
Received: from fifthhorseman.net (AMERICAN-CI.ear2.NewYork6.Level3.net
 [4.59.214.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
 (No client certificate requested)
 by che.mayfirst.org (Postfix) with ESMTPSA id D87DAF9B1
 for <78448 <at> debbugs.gnu.org>; Tue, 20 May 2025 14:47:03 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000)
 id 8F30C13F6B1; Tue, 20 May 2025 14:47:00 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@HIDDEN>
To: 78448 <at> debbugs.gnu.org
Subject: [PATCH 3/3 v2] Re: 30.1; mml: Produce Unobtrusive Signatures
In-Reply-To: <87a57dciom.fsf@HIDDEN>
References: <87a57dciom.fsf@HIDDEN>
Autocrypt: addr=dkg@HIDDEN; prefer-encrypt=mutual; keydata=
 xjMEZXEJyxYJKwYBBAHaRw8BAQdA5BpbW0bpl5qCng/RiqwhQINrplDMSS5JsO/YO+5Zi7HNFzxk
 a2dAZmlmdGhob3JzZW1hbi5uZXQ+wsARBBMWCgB5AwsJB0cUAAAAAAAeACBzYWx0QG5vdGF0aW9u
 cy5zZXF1b2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Um7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
Date: Tue, 20 May 2025 14:47:00 -0400
Message-ID: <87cyc3m863.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==-=-=";
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78448
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--==-=-=
Sig: t=p; b=iHUEARYKAB0WIQRjrBGOWy5dZsiKhad4C4VO2cK0lgUCaCzOJAAKCRB4C4VO2cK0
 luHdAP4oyjip/xHWib17ZjiFDXzRbZZGO/jRuF4zUJX/KNMqFwD+OBw7FMMYsUVy
 vYYS7iDXzzIcc+C7Il9taDRgm1QofAM=
From: Daniel Kahn Gillmor <dkg@HIDDEN>
To: 78448 <at> debbugs.gnu.org
Subject: [PATCH 3/3 v2] Re: 30.1; mml: Produce Unobtrusive Signatures
In-Reply-To: <87a57dciom.fsf@HIDDEN>
References: <87a57dciom.fsf@HIDDEN>
Autocrypt: addr=dkg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Qmn334e+bPqvojJVdFsiBf0leAAHP+ESqop8NAwEIB8LAAAQYFgoAcgWC
 Z4qN+QkQu36RAUlea/dHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnA5Lw
 b3wOOcoodImuVNw4PYq1U65FDC1Q2JMFIcJXqF0CmwwWIQTUdwQMcMIValwphUm7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
Date: Tue, 20 May 2025 14:47:00 -0400
Message-ID: <87cyc3m863.fsf@HIDDEN>
Content-Type: multipart/mixed; boundary="=-=-="; hp="clear"

--=-=-=
Content-Type: text/plain

Attached is a revised version of patch 3, which corrects the default
keybindings.

        --dkg


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0003-mml-Add-C-c-RET-s-u-to-make-Unobtrusive-Signature.patch
Content-Transfer-Encoding: quoted-printable

From=20a5de7ee57e1933a0783c8346db52c569074c07f7 Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@HIDDEN>
Date: Thu, 15 May 2025 22:03:25 -0400
Subject: [PATCH] mml: Add C-c RET s u to make Unobtrusive Signature

This adds to the default keymap to make it relatively easy to make an
Unobtrusive Signature when sending mail.

Unobtrusive Signatures are defined on a per-message basis, and
explicitly ignored per-part, so we do not facilitate part-based signing.

Signed-off-by: Daniel Kahn Gillmor <dkg@HIDDEN>
=2D--
 lisp/gnus/mml-sec.el | 5 +++++
 lisp/gnus/mml.el     | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el
index 6fb82836e9a..71913c8e8cc 100644
=2D-- a/lisp/gnus/mml-sec.el
+++ b/lisp/gnus/mml-sec.el
@@ -399,6 +399,11 @@ Use METHOD if given.  Else use `mml-secure-method' or
    (or method mml-secure-method mml-default-sign-method)
    'encrypt))
=20
+(defun mml-secure-message-sign-unobtrusive ()
+  "Add MML tag to encrypt/sign the entire message."
+  (interactive nil mml-mode)
+  (mml-secure-message "unobtrusive" 'sign))
+
 (defun mml-secure-message-sign-smime ()
   "Add MML tag to encrypt/sign the entire message."
   (interactive nil mml-mode)
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 11a8de7c011..52c9c63833a 100644
=2D-- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -1178,7 +1178,8 @@ If HANDLES is non-nil, use it instead reparsing the b=
uffer."
     "s" (define-keymap
           "p" #'mml-secure-message-sign-pgpmime
           "o" #'mml-secure-message-sign-pgp
=2D          "s" #'mml-secure-message-sign-smime)
+          "s" #'mml-secure-message-sign-smime
+          "u" #'mml-secure-message-sign-unobtrusive)
     "S" (define-keymap
           "p" #'mml-secure-sign-pgpmime
           "o" #'mml-secure-sign-pgp
=2D-=20
2.47.2


--=-=-=--

--==-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.

Message received at 78448 <at> debbugs.gnu.org:


Received: (at 78448) by debbugs.gnu.org; 18 May 2025 05:16:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 01:16:37 2025
Received: from localhost ([127.0.0.1]:53912 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGWO5-0007YX-1y
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 01:16:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39130)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uGWO2-0007Xy-Ke
 for 78448 <at> debbugs.gnu.org; Sun, 18 May 2025 01:16:35 -0400
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 <eliz@HIDDEN>)
 id 1uGWNw-0006UB-76; Sun, 18 May 2025 01:16:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=qzWpMqdHwECWLuiskkVjfMhMmdvAp0ajWH2d3/a5eHs=; b=e9hBqm93TnDX
 7sJlgnTiXwOv6YcFwDoOJBNuh7uPjb1T4X/BdV1HEVhfg8s3okJrZG7enFhxkr40i8wPfLI5lf2GT
 j4hBaCz/vgvbtqZIdroLciDeUoDVotxD1JYCkl0kMTvJzFiCGJTKWN88gQ2qOXFa3q9mf/EAPo1DC
 sAVLU5fRfxhd0TxstJGShQCmBa2FBMGgcJ9UhSXogBTAxp0ZT5IbSJnoey+ZcDRJlvy1/uvJDwzNM
 YhlOCU3iDzFbxDE7a6uJIjWvJbIxwsy1E2W5gBUsB4fNs1nnFWwv7MGYgUmAZHhvC0Dg3RSmB1NsY
 pyMmq1WMjUc3JBQXc+tr3w==;
Date: Sun, 18 May 2025 08:16:26 +0300
Message-Id: <861psmv6qd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Daniel Kahn Gillmor <dkg@HIDDEN>
In-Reply-To: <87o6vqbobs.fsf@HIDDEN> (message from Daniel Kahn
 Gillmor on Sat, 17 May 2025 23:16:39 -0400)
Subject: Re: bug#78448: 30.1; mml: Produce Unobtrusive Signatures
References: <87a57dciom.fsf@HIDDEN> <86v7pzv8z4.fsf@HIDDEN>
 <87o6vqbobs.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78448
Cc: eric@HIDDEN, 78448 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Daniel Kahn Gillmor <dkg@HIDDEN>
> Cc: 78448 <at> debbugs.gnu.org
> Date: Sat, 17 May 2025 23:16:39 -0400
> 
> Hi Eli--
> 
> On Sat 2025-05-17 13:15:43 +0300, Eli Zaretskii wrote:
> > In any case, Daniel, to accept a contribution this large, we will need
> > you to assign to the FSF the copyright for your Emacs-related changes.
> > If you agree to do that, I will send you the form to fill and the
> > instructions to go with it.
> 
> I'm pretty frustrated and disappointed with the FSF these days, but i
> still care about emacs, so i'm willing to make a copyright assignment
> for the sake of the tooling here and the broader ecosystem around it.
> 
> Please send me the form and instructions.

Thanks, form sent off-list.




Information forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.

Message received at 78448 <at> debbugs.gnu.org:


Received: (at 78448) by debbugs.gnu.org; 18 May 2025 03:16:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 17 23:16:48 2025
Received: from localhost ([127.0.0.1]:53174 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGUW7-00007J-MY
	for submit <at> debbugs.gnu.org; Sat, 17 May 2025 23:16:48 -0400
Received: from che.mayfirst.org ([162.247.75.118]:54397)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dkg@HIDDEN>)
 id 1uGUW5-000079-26
 for 78448 <at> debbugs.gnu.org; Sat, 17 May 2025 23:16:45 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple;
 d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019;
 t=1747538204; h=from : to : cc : subject : in-reply-to : references :
 date : message-id : mime-version : content-type : from;
 bh=w9KFbGotVNwWMHkWsRvedEF6uWXiVS8PkeN5Gn2AytI=;
 b=0J4Zf34qnfwL9y75qnyYhC+yPRgP2cCBaU+F6WnDPZcztj0YtSOzA6B+diFXpcuGlLKH/
 HfXTcAK8fpTnFfcAg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net;
 i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1747538204; h=from : to
 : cc : subject : in-reply-to : references : date : message-id :
 mime-version : content-type : from;
 bh=w9KFbGotVNwWMHkWsRvedEF6uWXiVS8PkeN5Gn2AytI=;
 b=EtiI/aTTRHXOLAWkaMl/BENPowmF0IMwcgtt4HmOcXKPP1+QOXoMJhonyVqy3gBAbjwmG
 fL7Y/5ZYFrv5Zt7/UYj2T5zig0532Fj3SXBN3Qnc8tWYRBIfZj5i78Y9yll6XP5F+YndJ6r
 RghFvZErUrys9IoMVL5Q4a6QL041BskNbAZbcZH5ID3244G+XP+ry5aeif2TWdXBLx4VWcu
 d4XOJ+WI2WWq48Z5aLexKPrXTs8uW9MDiFi34qOSOcGCaVl0XIp+djR4CGbbVPQ1j3psJoP
 rXcqh/YZEKC4+5UVriii1D8bquUBWDVW53xqFG8X4tZVZ0ki9Q+9YarR57fQ==
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 ECDSA (secp384r1))
 (No client certificate requested)
 by che.mayfirst.org (Postfix) with ESMTPSA id F3773F9B1;
 Sat, 17 May 2025 23:16:43 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000)
 id D99E613F6AF; Sat, 17 May 2025 23:16:39 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Eric Abrahamsen <eric@HIDDEN>
Subject: Re: bug#78448: 30.1; mml: Produce Unobtrusive Signatures
In-Reply-To: <86v7pzv8z4.fsf@HIDDEN>
References: <87a57dciom.fsf@HIDDEN> <86v7pzv8z4.fsf@HIDDEN>
Autocrypt: addr=dkg@HIDDEN; prefer-encrypt=mutual; keydata=
 xjMEZXEJyxYJKwYBBAHaRw8BAQdA5BpbW0bpl5qCng/RiqwhQINrplDMSS5JsO/YO+5Zi7HNFzxk
 a2dAZmlmdGhob3JzZW1hbi5uZXQ+wsARBBMWCgB5AwsJB0cUAAAAAAAeACBzYWx0QG5vdGF0aW9u
 cy5zZXF1b2lhLXBncC5vcmcS78JIJ7JbALqPiKEmva7/Pp16WwXWm9hbe5+B/UvnfwMVCggCmwEC
 HgEWIQTUdwQMcMIValwphUm7fpEBSV5r9wUCZadfkAUJBdnwRQAKCRC7fpEBSV5r9yNXAP442N0c
 zvisBroQSKKpo+OWm2JpnEJWoVheeJvoRtkBGQEA+edHylby8IGcNccq7rmM2rAXdofvrU1o6qow
 V+mmDwbOMwRnio4OFgkrBgEEAdpHDwEBB0Cw9HzJFl9lZn3UBaUqSMSgxjcdbd0MwNVcGZ8t8wdN
 EcLAvwQYFgoBMQWCZ4qODgkQu36RAUlea/dHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9p
 YS1wZ3Aub3JnhcN+tn41cAg01Kk56zcAfpdsh8j98PDe00mqKPfFvaYCmwK+oAQZFgoAbwWCZ4qO
 DgkQeAuFTtnCtJZHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnxsD8Sk5P
 Wgx8c/Zseo6OlCjyDC+Ogm17gTaUUIpxjWYWIQRjrBGOWy5dZsiKhad4C4VO2cK0lgAAdcQA/1RG
 dmrmvVxkBY2qNPjtERNwPga8Pf4IdlenrZ03NXM4AQC+TDHMpD7d5obEvUy8GYI3oThzYItPP8vv
 ChY+wbaIBRYhBNR3BAxwwhVqXCmFSbt+kQFJXmv3AAAKbgD+K1MZXnRKPdmA8DgNysyGRZY8cSVH
 HQcC7ZAAtV3i2+wA/0CyOYrbFYbyTRALgoERR07OHFoP+fJopQLMNQARVUELzjgEZ4qN+RIKKwYB
 BAGXVQEFAQEHQDTGlR+Qmn334e+bPqvojJVdFsiBf0leAAHP+ESqop8NAwEIB8LAAAQYFgoAcgWC
 Z4qN+QkQu36RAUlea/dHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnA5Lw
 b3wOOcoodImuVNw4PYq1U65FDC1Q2JMFIcJXqF0CmwwWIQTUdwQMcMIValwphUm7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
Date: Sat, 17 May 2025 23:16:39 -0400
Message-ID: <87o6vqbobs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78448
Cc: 78448 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain

Hi Eli--

On Sat 2025-05-17 13:15:43 +0300, Eli Zaretskii wrote:
> In any case, Daniel, to accept a contribution this large, we will need
> you to assign to the FSF the copyright for your Emacs-related changes.
> If you agree to do that, I will send you the form to fill and the
> instructions to go with it.

I'm pretty frustrated and disappointed with the FSF these days, but i
still care about emacs, so i'm willing to make a copyright assignment
for the sake of the tooling here and the broader ecosystem around it.

Please send me the form and instructions.

       --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRjrBGOWy5dZsiKhad4C4VO2cK0lgUCaClRFwAKCRB4C4VO2cK0
liA4AQDWhfCGbi4jPFrdOkNqpalw/vwdBY9nCIP8DgicFTYMRwEAt7lyRNHgwpAC
XTisX8nQ5JUXTr8ANiPvMSZncL2dMA4=
=LUVM
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.

Message received at 78448 <at> debbugs.gnu.org:


Received: (at 78448) by debbugs.gnu.org; 17 May 2025 10:16:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 17 06:16:11 2025
Received: from localhost ([127.0.0.1]:46129 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGEaR-0006rQ-CW
	for submit <at> debbugs.gnu.org; Sat, 17 May 2025 06:16:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51748)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uGEaN-0006qz-WE
 for 78448 <at> debbugs.gnu.org; Sat, 17 May 2025 06:16:08 -0400
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 <eliz@HIDDEN>)
 id 1uGEaG-0005xe-Rn; Sat, 17 May 2025 06:16:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=tmvWmV1CIMjxH+ca4i0RjIljPF/IjJWQA9Xs4sbeu8o=; b=MV3IOJzR88VQ
 DVZ8QhoaNRFE0doQdULw1cDbCPzpxHgBA3pFX3hN8tVaMnipm/nDpIhfKkpLVYHphAjpKwsvL7S62
 3JMMwp26qB5D7NC0C4GMfPJZwFAZn4Qu5i8jxy+L1AGgJElHGrWustjESZ8h1OWaFGipdVekK4O5k
 t85rlNeX/N2qqh5L73/N/xP8M/JwbPyCCPht2ZoUr6nF6lUmuwSX5QCj44QFUa71t6u3UYiswGFkB
 QaAICGWv/vmBoI3go4R01o3Jt8bcs/MWR8nSNQlHnVp+Xltz6BRA7r6oZdttvu2wIFPS39jgZKDLe
 omyFClGYh7YJFEpj/hb5Pg==;
Date: Sat, 17 May 2025 13:15:43 +0300
Message-Id: <86v7pzv8z4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Daniel Kahn Gillmor <dkg@HIDDEN>,
 Eric Abrahamsen <eric@HIDDEN>
In-Reply-To: <87a57dciom.fsf@HIDDEN> (message from Daniel Kahn
 Gillmor on Thu, 15 May 2025 23:56:25 -0400)
Subject: Re: bug#78448: 30.1; mml: Produce Unobtrusive Signatures
References: <87a57dciom.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78448
Cc: 78448 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Daniel Kahn Gillmor <dkg@HIDDEN>
> Date: Thu, 15 May 2025 23:56:25 -0400
> 
> Package: emacs,gnus
> Version: 30.1
> 
> I'm running emacs 30.1 on debian.  When sending cleartext mail, i want
> to be able to produce an "Unobtrusive Signature" using OpenPGP as
> described in
> https://datatracker.ietf.org/doc/draft-gallagher-email-unobtrusive-signatures/
> 
> Those kinds of signatures provide end-to-end cryptographic protection
> for headers (based on
> https://datatracker.ietf.org/doc/draft-ietf-lamps-header-protection/ )
> as well as the message body, and are less likely to inflict bad UX or
> bad rendering on recipients using legacy MUAs compared to PGP/MIME (or
> inline PGP, for that matter).
> 
> These three patches appear to do the trick for me.  I'm not an elisp
> guru or a gnus expert.  I'm happy to hear any feedback about how they
> could be improved.

Eric, any comments to the patch or to the issue?

In any case, Daniel, to accept a contribution this large, we will need
you to assign to the FSF the copyright for your Emacs-related changes.
If you agree to do that, I will send you the form to fill and the
instructions to go with it.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 May 2025 03:56:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 15 23:56:47 2025
Received: from localhost ([127.0.0.1]:59833 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFmBi-0003vd-Ai
	for submit <at> debbugs.gnu.org; Thu, 15 May 2025 23:56:47 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56928)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dkg@HIDDEN>)
 id 1uFmBf-0003uo-HU
 for submit <at> debbugs.gnu.org; Thu, 15 May 2025 23:56:44 -0400
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 <dkg@HIDDEN>)
 id 1uFmBZ-0008K4-ET
 for bug-gnu-emacs@HIDDEN; Thu, 15 May 2025 23:56:37 -0400
Received: from che.mayfirst.org ([162.247.75.118])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dkg@HIDDEN>)
 id 1uFmBX-0007kI-1p
 for bug-gnu-emacs@HIDDEN; Thu, 15 May 2025 23:56:37 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple;
 d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019;
 t=1747367792; h=from : to : subject : date : message-id : mime-version
 : content-type : from;
 bh=IyewDc8Ju+j7UT681ShQQWqazxqwUlMDgoVPE0tJBe4=;
 b=GJYBoIiZqleUR3EZOVjMSoPVfw4gb276G/d5McAcjQ6zAGFvGCUL46XMNY5U/le1xN8sP
 zZ3XPYL6akAnxPrAw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net;
 i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1747367792; h=from : to
 : subject : date : message-id : mime-version : content-type : from;
 bh=IyewDc8Ju+j7UT681ShQQWqazxqwUlMDgoVPE0tJBe4=;
 b=LoJq1f3leNGbqgIxQoOPq18xHlOlpGCZsyvlDQwGEgWX3ETn+PGy3AMEcV1tOnTefYepz
 1CIJPDGkBaEq10w+YLb3dObr4HPtmeKaw7uZvsO8D7Wu6OHwY/5Kpn1VsZlI7CWHjpO1GKZ
 hRWZfkLQEGnHV8Nd3NPBxFqpfOu33JWBmFvXST3cNYwkjaiaKg/O1T1eHlUWYf3efCydtd+
 RYhIDUM2XQkg4dSN9AdOtERXJ9oeNafsyl+FPdYHtPaMtE6drTHsOqBH6ShcK0oZuqqb4C/
 uLfddXs3liJKgmU6jumoT5h7oAwocYNj054TaC1OOxGOjCaDv6IlRBpj+h9w==
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 ECDSA (secp384r1))
 (No client certificate requested)
 by che.mayfirst.org (Postfix) with ESMTPSA id A681AF9B1;
 Thu, 15 May 2025 23:56:32 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000)
 id 226BA13F6A6; Thu, 15 May 2025 23:56:26 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@HIDDEN>
To: bug-gnu-emacs@HIDDEN, bugs@HIDDEN
Subject: 30.1; mml: Produce Unobtrusive Signatures
Autocrypt: addr=dkg@HIDDEN; prefer-encrypt=mutual; keydata=
 xjMEZXEJyxYJKwYBBAHaRw8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gWC
 Z4qN+QkQu36RAUlea/dHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnA5Lw
 b3wOOcoodImuVNw4PYq1U65FDC1Q2JMFIcJXqF0CmwwWIQTUdwQMcMIValwphUm7fpEBSV5r9wAA
 6egA/j3QANSmogZ5VTF5KlI+BBye9ud/w9j7RLcCHU6u8AA1AQC3FGaNuv+uWOSa+eeEoI/aZrGd
 X5el8b/m6aXDDxDjDg==
X-Debbugs-Cc: 
Date: Thu, 15 May 2025 23:56:25 -0400
Message-ID: <87a57dciom.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=162.247.75.118;
 envelope-from=dkg@HIDDEN; helo=che.mayfirst.org
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain

Package: emacs,gnus
Version: 30.1

I'm running emacs 30.1 on debian.  When sending cleartext mail, i want
to be able to produce an "Unobtrusive Signature" using OpenPGP as
described in
https://datatracker.ietf.org/doc/draft-gallagher-email-unobtrusive-signatures/

Those kinds of signatures provide end-to-end cryptographic protection
for headers (based on
https://datatracker.ietf.org/doc/draft-ietf-lamps-header-protection/ )
as well as the message body, and are less likely to inflict bad UX or
bad rendering on recipients using legacy MUAs compared to PGP/MIME (or
inline PGP, for that matter).

These three patches appear to do the trick for me.  I'm not an elisp
guru or a gnus expert.  I'm happy to hear any feedback about how they
could be improved.

Regards,

        --dkg


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-mml-Pass-likely-headers-through-to-mml-sec-functions.patch
Content-Transfer-Encoding: quoted-printable

From=2081c3e7f5de0bbb24bbd2a2b43a103fb83c530f6d Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@HIDDEN>
Date: Thu, 15 May 2025 21:49:32 -0400
Subject: [PATCH 1/3] mml: Pass likely headers through to mml-sec functions

By pre-computing the likely headers for an outbound message, and passing
them along as a tag in mml-parse, we create an opportunity to provide
Header Protection as described in
https://datatracker.ietf.org/doc/draft-ietf-lamps-header-protection/

Signed-off-by: Daniel Kahn Gillmor <dkg@HIDDEN>
=2D--
 lisp/gnus/mml.el | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 51d8d2c3769..11a8de7c011 100644
=2D-- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -265,6 +265,8 @@ part.  This is for the internal use, you should never m=
odify the value.")
 	  (apply #'mml-insert-tag
 		 secure-mode
 		 `(,@tags
+                   ,"likely-headers"
+                   ,(mml-get-likely-headers)
 		   ,(if keyfile "keyfile")
 		   ,keyfile
 		   ,@(apply #'append
@@ -492,6 +494,21 @@ If MML is non-nil, return the buffer up till the corre=
spondent mml tag."
 (declare-function libxml-parse-html-region "xml.c"
 		  (start end &optional base-url discard-comments))
=20
+(defun mml-get-likely-headers ()
+  "Get likely final headers from the existing message"
+  (save-excursion
+    (save-restriction
+      (message-narrow-to-headers-or-head)
+      (let ((x (buffer-substring (point-min) (point-max))))
+        (with-temp-buffer
+          (insert x)
+          (message-remove-header "Bcc")
+          (message-remove-header message-ignored-mail-headers t)
+          (mail-encode-encoded-word-buffer)
+          (message-cleanup-headers)
+          (buffer-string)
+          )))))
+
 (defun mml-generate-mime (&optional multipart-type content-type)
   "Generate a MIME message based on the current MML document.
 MULTIPART-TYPE defaults to \"mixed\", but can also
=2D-=20
2.47.2


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0002-mml-Enable-production-of-Unobtrusive-Signatures-via-.patch
Content-Transfer-Encoding: quoted-printable

From=2075f8c5c936deafea1ee44edad5e0f530ec6c4dfc Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@HIDDEN>
Date: Thu, 15 May 2025 21:54:06 -0400
Subject: [PATCH 2/3] mml: Enable production of Unobtrusive Signatures via e=
pg

https://datatracker.ietf.org/doc/draft-gallagher-email-invisible-signatures/
describes a mechanism to produce cleartext signatures over MIME messages
that are less likely to cause problems than traditional PGP/MIME.

With this patch, it's possible to produce those signatures with:

   (mml-secure-message "unobtrusive" 'sign)

This patch only works with epg, not with mailcrypt or pgg, because epg
is what i'm familiar with and what i can easily test.

Signed-off-by: Daniel Kahn Gillmor <dkg@HIDDEN>
=2D--
 lisp/gnus/mml-sec.el |  6 ++++++
 lisp/gnus/mml2015.el | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el
index 8dffcf872f3..6fb82836e9a 100644
=2D-- a/lisp/gnus/mml-sec.el
+++ b/lisp/gnus/mml-sec.el
@@ -34,6 +34,7 @@
 (autoload 'mail-strip-quoted-names "mail-utils")
 (autoload 'mml2015-sign "mml2015")
 (autoload 'mml2015-encrypt "mml2015")
+(autoload 'mml-unobtrusive-sign "mml2015")
 (autoload 'mml1991-sign "mml1991")
 (autoload 'mml1991-encrypt "mml1991")
 (autoload 'message-fetch-field "message")
@@ -56,6 +57,7 @@
   '(("smime"     mml-smime-sign-buffer     mml-smime-sign-query)
     ("pgp"       mml-pgp-sign-buffer       list)
     ("pgpauto"   mml-pgpauto-sign-buffer  list)
+    ("unobtrusive" mml-unobtrusive-sign-buffer list)
     ("pgpmime"   mml-pgpmime-sign-buffer   list))
   "Alist of MIME signer functions.")
=20
@@ -198,6 +200,10 @@ You can also customize or set `mml-signencrypt-style-a=
list' instead."
   (or (mml2015-sign cont)
       (error "Signing failed... inspect message logs for errors")))
=20
+(defun mml-unobtrusive-sign-buffer (cont)
+  (or (mml-unobtrusive-sign cont)
+      (error "Signing failed... inspect message logs for errors")))
+
 (defun mml-pgpmime-encrypt-buffer (cont &optional sign)
   (or (mml2015-encrypt cont sign)
       (error "Encryption failed... inspect message logs for errors")))
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el
index a46aa68f56a..646fb018a31 100644
=2D-- a/lisp/gnus/mml2015.el
+++ b/lisp/gnus/mml2015.el
@@ -25,6 +25,9 @@
 ;; RFC 2015 is updated by RFC 3156, this file should be compatible
 ;; with both.
=20
+;; This is also capable of producing unobtrusive signatures based on
+;; draft-gallagher-email-unobtrusive-signatures
+
 ;;; Code:
=20
 (eval-when-compile (require 'cl-lib))
@@ -945,6 +948,42 @@ If set, it overrides the setting of `mml2015-sign-with=
-sender'."
     (insert (format "--%s--\n" boundary))
     (goto-char (point-max))))
=20
+;;; Unobtrusive Signatures, see:
+;;; https://datatracker.ietf.org/doc/draft-gallagher-email-unobtrusive-sig=
natures/
+
+; convert ASCII-armored PGP SIGNATURE block to base64-encoded with FWS
+; at the start of each line:
+(defun pgpsig-armor-to-wrapped-b64 (s)
+  (string-join
+   (string-split
+    (string-trim-right
+     (string-trim-left s "-----BEGIN PGP SIGNATURE-----\n\\(?:[^\n]+\n\\)*=
\n")
+     "\n\\(?:=3D....\n\\)?-----END PGP SIGNATURE-----\n?")
+    "\n")
+   "\n "))
+
+(defun mml-unobtrusive-sign (cont)
+  (goto-char (point-min))
+  (insert (cdr (assq 'likely-headers cont)))
+  (re-search-forward "^Content-Type: [^\n]*\\(\n[ \t][^\n]*$\\)*")
+  (insert "; hp=3D\"clear\"")
+  (re-search-forward "^")
+  (let* ((pair (mml-secure-epg-sign 'OpenPGP t))
+	 (signature (car pair)))
+    (unless (stringp signature)
+      (error "Signature failed"))
+    (goto-char (point-min))
+    (insert (format "Sig: t=3Dp; b=3D%s\n"
+                    (pgpsig-armor-to-wrapped-b64 signature)))
+    (let ((boundary (mml-compute-boundary cont)))
+      (goto-char (point-min))
+      (insert (format "Content-Type: multipart/mixed; boundary=3D\"%s\";\n"
+		      boundary))
+      (insert (format "\n--%s\n" boundary))
+      (goto-char (point-max))
+      (insert (format "\n--%s--\n" boundary))
+      (goto-char (point-max)))))
+
 ;;; General wrapper
=20
 (autoload 'gnus-buffer-live-p "gnus-util")
=2D-=20
2.47.2


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0003-mml-Add-C-c-RET-s-u-to-make-Unobtrusive-Signature.patch
Content-Transfer-Encoding: quoted-printable

From=20f03c16ddedaa0b7a39692629ab61e7c3b3e06201 Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@HIDDEN>
Date: Thu, 15 May 2025 22:03:25 -0400
Subject: [PATCH 3/3] mml: Add C-c RET s u to make Unobtrusive Signature

This adds to the default keymap to make it relatively easy to make an
Unobtrusive Signature when sending mail.

Signed-off-by: Daniel Kahn Gillmor <dkg@HIDDEN>
=2D--
 lisp/gnus/mml-sec.el | 5 +++++
 lisp/gnus/mml.el     | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el
index 6fb82836e9a..9b703abd5f4 100644
=2D-- a/lisp/gnus/mml-sec.el
+++ b/lisp/gnus/mml-sec.el
@@ -285,6 +285,11 @@ Use METHOD if given.  Else use `mml-secure-method' or
   (interactive nil mml-mode)
   (mml-secure-part "pgpmime" 'sign))
=20
+(defun mml-secure-sign-unobtrusive ()
+  "Add MML tags to unobtrusively sign this MML part."
+  (interactive nil mml-mode)
+  (mml-secure-part "unobtrusive" 'sign))
+
 (defun mml-secure-sign-smime ()
   "Add MML tags to S/MIME sign this MML part."
   (interactive nil mml-mode)
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 11a8de7c011..7d849335154 100644
=2D-- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -1178,11 +1178,13 @@ If HANDLES is non-nil, use it instead reparsing the=
 buffer."
     "s" (define-keymap
           "p" #'mml-secure-message-sign-pgpmime
           "o" #'mml-secure-message-sign-pgp
=2D          "s" #'mml-secure-message-sign-smime)
+          "s" #'mml-secure-message-sign-smime
+          "u" #'mml-secure-message-sign-unobtrusive)
     "S" (define-keymap
           "p" #'mml-secure-sign-pgpmime
           "o" #'mml-secure-sign-pgp
=2D          "s" #'mml-secure-sign-smime)
+          "s" #'mml-secure-sign-smime
+          "u" #'mml-secure-message-sign-unobtrusive)
     "c" (define-keymap
           "p" #'mml-secure-message-encrypt-pgpmime
           "o" #'mml-secure-message-encrypt-pgp
=2D-=20
2.47.2


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRjrBGOWy5dZsiKhad4C4VO2cK0lgUCaCa3aQAKCRB4C4VO2cK0
liFeAP43PlQNzPjzuDY1zjtaV3Mbj82otoZ3wCoAVnVkSkpzfgEApsT3++6DkC7x
OecKQ1QstKo5QydIlEYwocH+IkE9SQQ=
=3Zmf
-----END PGP SIGNATURE-----
--==-=-=--




Acknowledgement sent to Daniel Kahn Gillmor <dkg@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN, bugs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN, bugs@HIDDEN:
bug#78448; Package emacs,gnus. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 28 May 2025 14:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.