fix: don't assume contact keys are armored

This commit is contained in:
James Houlahan
2020-07-14 16:43:06 +02:00
parent fc4e77604f
commit ed7a0dc9b3
2 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,7 @@ func (su *smtpUser) Send(from string, to []string, messageReader io.Reader) (err
return err
}
for _, contactRawKey := range contactMeta.Keys {
contactKey, err := crypto.NewKeyFromArmored(contactRawKey)
contactKey, err := crypto.NewKey([]byte(contactRawKey))
if err != nil {
return err
}