mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-02-25 05:35:24 +01:00
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> |
||
|---|---|---|
| .. | ||
| testdata/message | ||
| message.go | ||
| message_test.go | ||