revsuine
revsuine pushed to master at revsuine/gpgmymail 2024-11-14 20:12:50 +00:00
272842162d don't decode if decoding unneeded
revsuine pushed to master at revsuine/gpgmymail 2024-11-14 19:52:12 +00:00
revsuine pushed to master at revsuine/gpgmymail 2024-11-14 19:49:13 +00:00
c148b94be1 decode_b64_part always returns something
revsuine pushed to 7or8bit-decode at revsuine/gpgmymail 2024-11-14 19:48:48 +00:00
d839d9649f Merge branch 'master' into 7or8bit-decode
c148b94be1 decode_b64_part always returns something
ec1fda254a Merge branch '7or8bit-decode'
Compare 3 commits »
revsuine merged pull request revsuine/gpgmymail#5 2024-11-14 19:45:52 +00:00
7or8bit-decode
revsuine pushed to master at revsuine/gpgmymail 2024-11-14 19:45:50 +00:00
ec1fda254a Merge branch '7or8bit-decode'
633a54e2b1 decode b64 bytes for non-multipart message too
218ee51ac2 abstract b64 decoding behaviour to a function
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
Compare 18 commits »
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