Sometimes messages cannot be decrypted by Thunderbird #4
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
priority
high
priority
low
priority
medium
priority
urgent
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: revsuine/gpgmymail#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The issue
Thunderbird fails to decrypt some gpgmymail emails. These emails can be decrypted manually fine, using
gpg --decrypt
. This tends to come from specific sources of emails, e.g. blacklistingsubstack.com
from gpgmymail means I can read Substack emails ok in my email client. The vast majority of emails decrypt fine in ThunderbirdCurrent theory
It has to do with the encoding of the message not being 7-bit. See the attached two emails I received to compare. Thunderbird is capable of reading/decrypting Aki Tuomi's email, which uses 7-bit encoding, but not Nick Howitt's email, which uses base64 encoding.
gpgmymail uses 7-bit encoding. TODO: experiment with gpgmymail using the same encoding as the original email.
885532f27a
addresses this but turns out Thunderbird still can't read them.We'd have to re-encode the message contents as 7or8bit, or skip encoding non-7or8bit messages.
Trying to use
get_payload()
to achieve this, butget_payload()
is always returningNone
, not sure why. TODO: figure that outSolution ideas:
attach()
(set_payload()
is for scalars like strings, which is the problem with the above)Ok I have working decoding for
quoted-printable
in7or8bit-decode
, need to do base64 now, which is harder as I can't just dobase64.b64decode()
since that treats the whole string/byte array like base64. Most likely I'll have to domessage.walk()
to find the relevant part, but ran into issues with that before.As of at least
272842162d
I think this may be resolved, but waiting for more mail traffic before closing.Closing: I'm concluding this is just an issue with Thunderbird being able to process gpgmymail-encrypted email because I switched to Evolution and it displays just fine. Deleting the spaghetti code I wrote to try circumvent Thunderbird issues and closing this issue