Open josch opened 2 years ago
I think I've hit the same issue here too - and probably have something equally bad as a temporary fix.
Even if it's spam though - it would be better to prepare and display the text as much as possible, so I think it needs something more, perhaps within extract_body_part() ? (or get_mime_part() ?)
Hi,
especially when encountering malformed spam email, alot keeps quitting on me with tracebacks like this:
or
I'm currently running alot with the following patch:
This replaces the message body by
ERROR
which is fine because those messages are spam anyways and at least alot doesn't quit. If a messages makes alot quit, it's quite time consuming to find that one spam message that tripped it off. With this patch such messages can be quickly identified and marked as spam. Certainly something more descriptive thanERROR
should be returned, maybe even a traceback that helps identifying the problem?