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>
This commit is contained in:
Tim Culverhouse 2022-04-29 11:19:52 -05:00 committed by Robin Jarry
parent b29293d7b5
commit dbf52bb4b4
7 changed files with 93 additions and 7 deletions
commands/compose

View file

@ -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