aboutsummaryrefslogtreecommitdiffstats
path: root/config/accounts.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-01-13 19:11:47 +0100
committerRobin Jarry <robin@jarry.cc>2024-01-25 21:10:10 +0100
commitbce77d8174f4698693af5e07f4c3697ba53bfae5 (patch)
treecb43323c7249c6071f29a73f2c599ef6dfac4f71 /config/accounts.go
parent2d8b81f619fc3c8b5a36932e000a86fe111e5bb9 (diff)
downloadaerc-bce77d8174f4698693af5e07f4c3697ba53bfae5.tar.gz
compose: allow automatic attachment of signing key
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 <sir@cmpwn.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Thomas Böhler <witcher@wiredspace.de> Reviewed-by: Thomas Böhler <witcher@wiredspace.de>
Diffstat (limited to 'config/accounts.go')
-rw-r--r--config/accounts.go1
1 files changed, 1 insertions, 0 deletions
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"`