diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-05-05 12:53:14 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-06 11:02:43 +0200 |
commit | bb400c7d88a08bc29fd635486dffbbad10f1835d (patch) | |
tree | 05446eca11fdbaf9608957c93d9821a2425ca4f4 /widgets/compose.go | |
parent | 5c5158b3c1275a11b66687496706372c01f66817 (diff) | |
download | aerc-bb400c7d88a08bc29fd635486dffbbad10f1835d.tar.gz |
pgp: add options auto-sign & opportunistic-encrypt
Add account level config options for auto-sign and opportunistic
encryption.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 6fbc23a6..5dab4294 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -118,6 +118,13 @@ func NewComposer(aerc *Aerc, acct *AccountView, conf *config.AercConfig, c.updateCrypto() c.ShowTerminal() + if c.acctConfig.PgpAutoSign { + c.SetSign(true) + } + if c.acctConfig.PgpOpportunisticEncrypt { + c.SetEncrypt(true) + } + return c, nil } |