aerc/worker/lib
Koni Marti 698c0957d7 pgp: ensure CRLF line endings in pgpmail reader
Ensure CRLF line endings in the pgpmail reader. Fix the pgp signature
verification for maildir and notmuch.

These backends do not return the full message body with CRLF
line endings. But the accepted OpenPGP convention is for signed data to
end with a <CR><LF> sequence (see RFC3156).

If this is not the case the signed and transmitted data are considered
not the same and thus signature verification fails.

Link: https://datatracker.ietf.org/doc/html/rfc3156

Reported-by: Tim Culverhouse <tim@timculverhouse.com>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Tested-by: Tim Culverhouse <tim@timculverhouse.com>
2022-04-25 12:31:33 +02:00
..
testdata/message/invalid handle message unknown charset error 2020-08-31 22:00:28 +02:00
parse.go pgp: ensure CRLF line endings in pgpmail reader 2022-04-25 12:31:33 +02:00
parse_test.go maildir,notmuch: avoid leaking open files 2022-01-19 20:18:00 +01:00
sort.go go.mod: change base git url 2021-11-05 10:21:45 +01:00