Some emails were refusing to fetch for me, resulting in the same error as #30 .
Debugging this, I discovered the affected messages had a MIME type of multipart/mixed, which was not being picked up by flatten_parts. This in turn resulted in an empty body, which crashed the plugin.
I also noticed that the plugin sometimes misinterpreted empty parts as attachments.
Some emails were refusing to fetch for me, resulting in the same error as #30 .
Debugging this, I discovered the affected messages had a MIME type of
multipart/mixed
, which was not being picked up byflatten_parts
. This in turn resulted in an empty body, which crashed the plugin.I also noticed that the plugin sometimes misinterpreted empty parts as attachments.
This PR addresses both.