1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-02-25 05:35:24 +01:00
aerc/lib/rfc822
Robin Jarry 0a449d4a7f rfc822: be more lenient with body structure
Some emails contain malformed MIME parts with invalid content
disposition headers or broken nested structures. Previously,
ParseEntityStructure would fail the entire parsing operation when
encountering such issues, making the whole message unreadable.

Instead of returning an error, log a warning and continue parsing
the remaining parts. This allows users to still read the valid
portions of a message even when some parts are malformed. Only
propagate MultipartError which indicates a fundamental structural
issue that cannot be recovered from.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2026-02-13 09:11:10 +01:00
..
testdata/message rfc822: parse multipart messages on a best efforts basis 2024-11-21 22:27:19 +01:00
message.go rfc822: be more lenient with body structure 2026-02-13 09:11:10 +01:00
message_test.go rfc822: parse multipart messages on a best efforts basis 2024-11-21 22:27:19 +01:00