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>
This commit is contained in:
parent
5c5158b3c1
commit
bb400c7d88
3 changed files with 29 additions and 1 deletions
widgets
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue