~rjarry/aerc#306: 
aerc is unable to decrypt mail

Every time I view PGP-encrypted mail, aerc fails to decrypt it, citing gpg(1) failing with the error gpgmail: failed to read PGP message: FAILURE gpg-exit 33554433

Status
REPORTED
Submitter
~emmatebibyte
Assigned to
No-one
Submitted
a month ago
Updated
20 days ago
Labels
No labels applied.

~toastal 25 days ago

Same experience here: gpgmail: failed to read PGP message: FAILURE gpg-exit 33554433

~toastal 25 days ago

gpgconf --reload gpg-agent then gave me the pinentry with very laggy input. I unlocked the key, but no message decrypted.

~toastal 25 days ago

Now that the key is unlocked, gpgmail: failed to read PGP message: FAILURE gpg-exit 33554433 again. gpg (GnuPG) 2.4.7

~toastal 25 days ago

:pipe gpg --decrypt does work.

~daniel_siepmann 20 days ago*

I've the same issue, with a different message. This is what the logging looks like:

TRACE 2025/04/04 09:47:09.566118 gpgbin.go:116: [GNUPG:] ENC_TO 81B807866BA52DCB 1 0
TRACE 2025/04/04 09:47:09.566161 gpgbin.go:116: [GNUPG:] KEY_CONSIDERED 77EE8BD5AFE0A8EBF5BA92D4B542A8DA9D2E6742 0
TRACE 2025/04/04 09:47:09.566167 gpgbin.go:116: [GNUPG:] KEY_CONSIDERED B9D690F77CD0B7C4336F661133D6629915560EF4 0
TRACE 2025/04/04 09:47:09.566172 gpgbin.go:116: [GNUPG:] NO_SECKEY 81B807866BA52DCB
TRACE 2025/04/04 09:47:09.566176 gpgbin.go:116: [GNUPG:] ERROR pkdecrypt_failed 33554449
TRACE 2025/04/04 09:47:09.566180 gpgbin.go:116: [GNUPG:] BEGIN_DECRYPTION
TRACE 2025/04/04 09:47:09.566184 gpgbin.go:116: [GNUPG:] DECRYPTION_FAILED
ERROR 2025/04/04 09:47:09.566199 status.go:133: gpgmail: failed to read PGP message: gpg: decryption failed
DEBUG 2025/04/04 09:47:09.566211 status.go:108: gpgmail: failed to read PGP message: gpg: decryption failed

This happens for all crypted mails. The ones send to myself, only encrypted with my own key. E.g. the registration mail send by sourcehut.

I'm using:

 aerc --version
aerc 0.20.1 +notmuch-5.6.0 (go1.24.1 amd64 linux 2025-03-16)

But furthermore, I'm not able to even decrypt via the pipe workaround if I open a send E-Mail. They seem to need the private key of the receiver as well. Maybe this is a different issue?

~daniel_siepmann 20 days ago

Sorry, but I've just checked that one needs to enable pgp-self-encrypt in order to decrypt drafts and send mails … That wasn't obvious to me. So this was another issue due to wrong expectations and configuration.

Register here or Log in to comment, or comment via email.