revsuine
revsuine created pull request revsuine/gpgmymail#5 2024-11-14 19:40:25 +00:00
7or8bit-decode
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 19:39:31 +00:00
633a54e2b1 decode b64 bytes for non-multipart message too
218ee51ac2 abstract b64 decoding behaviour to a function
Compare 2 commits »
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 19:26:16 +00:00
f1a07cb1e0 use message_from_string instead of message_from_bytes cause message_from_bytes bizarrely changes it back to base64
f559fef2ed strip trailing hyphens from base64
10f25158bf try to decode w/o boundary
Compare 3 commits »
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 18:55:22 +00:00
6590baafd1 try do this by replacing entire payload
b213a0ab52 don't encode decoded
9a3a1f2cb7 encode the find and replaces for b64 decode
Compare 3 commits »
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 18:45:46 +00:00
158f5356a1 syntax error fix
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 18:44:45 +00:00
82c5144e58 implement really hacky way of decoding b64 parts
revsuine commented on issue revsuine/gpgmymail#4 2024-11-14 18:29:35 +00:00
Sometimes messages cannot be decrypted by Thunderbird

Ok I have working decoding for quoted-printable in 7or8bit-decode, need to do base64 now, which is harder as I can't…

revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 18:26:46 +00:00
a21ee759c8 temp remove base64 decoding and unconditionally quopri decode
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 18:15:22 +00:00
2955e990da var name typo
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 18:13:29 +00:00
e7a8f40b91 first attempt to implement decoding as 7or8bit through quopri, base64, and byte replacement
revsuine created branch 7or8bit-decode in revsuine/gpgmymail 2024-11-14 17:39:41 +00:00
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 17:39:41 +00:00
8755e0e1cc gitignore some testing files
b78f1f04af more testing scripts
f895e87ec0 account for non-multipart emails
ed57c8f0d4 first attempt to implement decoding as 7or8bit (non-working)
Compare 4 commits »
revsuine commented on issue revsuine/gpgmymail#4 2024-11-14 15:36:42 +00:00
Sometimes messages cannot be decrypted by Thunderbird

Solution ideas:

  • Construct an entirely new email with 7or8bit encoding, should be actually simpler.
  • use attach() (set_payload() is for scalars like strings, which is the problem with…
revsuine commented on issue revsuine/gpgmymail#4 2024-11-13 01:20:08 +00:00
Sometimes messages cannot be decrypted by Thunderbird

Trying to use get_payload() to achieve this, but get_payload() is always returning None, not sure why. TODO: figure that out

revsuine pushed to master at revsuine/gpgmymail 2024-11-12 19:01:26 +00:00
61120dd4e8 revert gpgmymail to 40b3ba3760
revsuine created branch same-encoding-as-orig in revsuine/gpgmymail 2024-11-12 18:59:25 +00:00
revsuine pushed to same-encoding-as-orig at revsuine/gpgmymail 2024-11-12 18:59:25 +00:00
revsuine commented on issue revsuine/gpgmymail#4 2024-11-12 18:58:09 +00:00
Sometimes messages cannot be decrypted by Thunderbird

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…

revsuine pushed to master at revsuine/gpgmymail 2024-11-12 18:55:22 +00:00
885532f27a callable type hint
revsuine pushed to master at revsuine/gpgmymail 2024-11-12 18:53:07 +00:00
e0959fb9c6 var name syntax error