1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-23 07:53:59 +01:00
aerc/lib/crypto/gpg
Robin Jarry 3ff25aeaa1 pgp: ensure mime-version header is in the right place
Update go-pgpmail which has a similar fix to the one we had in place.
Update our fix to use the same implementation: do not parse the whole
signed part. Only parse the part header, remove the mime-version header
from it if any and re-write it, followed the part body verbatim without
any decoding/re-encoding.

Fixes: 7346d20343 ("gpg: fix signed message encoding")
Fixes: 7b8fbe2a3d ("gpg: fix mime-version header position")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Simon Ser <contact@emersion.fr>
2025-01-14 15:01:10 +01:00
..
gpgbin gpg: redirect status-fd from stdout to stderr 2024-10-27 10:15:08 +01:00
gpg.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
gpg_test.go gpg: do not sign with untrusted keys 2024-10-23 10:22:45 +02:00
reader.go crypto: add pinentry support to gpg 2024-10-12 00:12:29 +02:00
reader_test.go gpg: redirect status-fd from stdout to stderr 2024-10-27 10:15:08 +01:00
writer.go pgp: ensure mime-version header is in the right place 2025-01-14 15:01:10 +01:00
writer_test.go gpg: do not sign with untrusted keys 2024-10-23 10:22:45 +02:00