dbdf194f
email/worker: catch some PGP error earlier
The writer returned by pgpmail.Encryption() will have the keyring parsed, but it only tries to determine the encryption key once it is being written to. Hence, certain errors will only occur later on, when it is too late to fall back to unencrypted email. Catch these errors earlier by checking if a valid encryption key is found.
Conrad Hoffmann <ch@bitfehler.net> — 2025-03-05 13:45:41 UTC
Commit dbdf194f8b50568ba2ca4336fa477c7812525224 —
view raw patch
Parent(s):
cbf919e4
| File | Status | + | − |
|---|---|---|---|
email/worker.go
|
M | +8 |