From bce77d8174f4698693af5e07f4c3697ba53bfae5 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 13 Jan 2024 19:11:47 +0100 Subject: compose: allow automatic attachment of signing key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a new pgp-attach-key boolean setting in accounts.conf. When set to true, enabling message signing (either automatically via pgp-auto-sign or manually with :sign) will imply attaching the (public) key that will be used to sign the message before sending. The automatically attached key can be unattached like any other attachment with :detach. Implements: https://todo.sr.ht/~rjarry/aerc/207 Changelog-added: Automatically attach signing key with `pgp-attach-key` in `accounts.conf`. Requested-by: Drew Devault Signed-off-by: Robin Jarry Tested-by: Thomas Böhler Reviewed-by: Thomas Böhler --- config/accounts.go | 1 + 1 file changed, 1 insertion(+) (limited to 'config') diff --git a/config/accounts.go b/config/accounts.go index 413b77b1..1afa77c4 100644 --- a/config/accounts.go +++ b/config/accounts.go @@ -104,6 +104,7 @@ type AccountConfig struct { // PGP Config PgpKeyId string `ini:"pgp-key-id"` PgpAutoSign bool `ini:"pgp-auto-sign"` + PgpAttachKey bool `ini:"pgp-attach-key"` PgpOpportunisticEncrypt bool `ini:"pgp-opportunistic-encrypt"` PgpErrorLevel int `ini:"pgp-error-level" parse:"ParsePgpErrorLevel" default:"warn"` -- cgit