diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-04-29 11:19:52 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-04 14:07:15 +0200 |
commit | dbf52bb4b48748586bb6343ae4ad6d424f0631ac (patch) | |
tree | bd806636b0be51f07218f5a9db9be45af72db9ba /commands/compose/sign.go | |
parent | b29293d7b53c73629911ec75b2ec5954d365feed (diff) | |
download | aerc-dbf52bb4b48748586bb6343ae4ad6d424f0631ac.tar.gz |
pgp: check for signing key before signing time
Check that the signing key exists when the user issues the :sign
command. The signing key ID will be displayed in the security status
also, allowing the user to see what key will be used to sign the
message.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: Jens Grassel <jens@wegtam.com>
Diffstat (limited to 'commands/compose/sign.go')
-rw-r--r-- | commands/compose/sign.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/compose/sign.go b/commands/compose/sign.go index eb985e99..635b07c6 100644 --- a/commands/compose/sign.go +++ b/commands/compose/sign.go @@ -28,7 +28,10 @@ func (Sign) Execute(aerc *widgets.Aerc, args []string) error { composer, _ := aerc.SelectedTab().(*widgets.Composer) - composer.SetSign(!composer.Sign()) + err := composer.SetSign(!composer.Sign()) + if err != nil { + return err + } var statusline string |