1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-07-31 20:55:54 +02:00
aerc/lib/rfc822/testdata/message
Koni Marti c2048ef304 rfc822: parse multipart messages on a best efforts basis
Parse multipart messages on a best-efforts basis. Allow the user to see
as much of the message as possible, but log the errors.

If a charset or encoding error is encountered for a message part of a
multipart message, the error is logged and ignored. In those cases, we
still get a valid message body but the content is just not decoded or
converted. No error will be propagated.

If a multipart message cannot be parsed, ParseEntityStructure will
return a multipart error. This error indicates that the message is
malformed and there is nothing more we can do. The caller is then
advised to use a single text/plain body structure using
CreateTextPlainPart() to provide the entire message content to the user.

Fixes: https://todo.sr.ht/~rjarry/aerc/288
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2024-11-21 22:27:19 +01:00
..
malformed rfc822: parse multipart messages on a best efforts basis 2024-11-21 22:27:19 +01:00
valid worker: move shared code to lib 2023-10-28 19:24:55 +02:00