mirror of
https://git.sr.ht/~rjarry/aerc
synced 2025-07-31 20:55:54 +02:00
![]() 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> |
||
---|---|---|
.. | ||
malformed | ||
valid |