From 64fbd0655f4f702dbfe184dbff22715d7e1b1638 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Wed, 5 Aug 2020 10:55:46 +0200 Subject: [PATCH] fix: sign when no contact present --- internal/smtp/preferences.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/smtp/preferences.go b/internal/smtp/preferences.go index 89ec151e..a02c59c2 100644 --- a/internal/smtp/preferences.go +++ b/internal/smtp/preferences.go @@ -401,7 +401,9 @@ func (b *sendPreferencesBuilder) setExternalPGPSettingsWithoutWKDKeys( b.withEncrypt(vCardData.Encrypt) // Sign must be enabled whenever encrypt is. - b.withSign(vCardData.Sign || vCardData.Encrypt) + if vCardData.Sign || vCardData.Encrypt { + b.withSign(true) + } // If the contact has a specific Scheme preference, we set it (otherwise we // leave it unset to allow it to be filled in with the default value later).