[spambayes-bugs] [ spambayes-Bugs-890691 ] Invalid message causes exception from email package

SourceForge.net noreply at sourceforge.net
Wed Nov 3 04:31:54 CET 2004


Bugs item #890691, was opened at 2004-02-05 08:54
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=890691&group_id=61702

Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Nobody/Anonymous (nobody)
Summary: Invalid message causes exception from email package

Initial Comment:
This report was posted to spambayes-dev by Atom
'Smasher' <atom at suspicious.org>.  I've attached the
traceback and the message that causes
email.message_from_file() to choke.



----------------------------------------------------------------------

>Comment By: Tony Meyer (anadelonbrin)
Date: 2004-11-03 16:31

Message:
Logged In: YES 
user_id=552329

Python 2.4/email 3.0 handles this ok.  Earlier versions of
the email package don't.

I think the general consensus is that it doesn't make sense
to do any more work trying to handle malformed messages, as
we'd be duping the email package people (i.e.
Barry/Anthony)'s work.  The more well-used scripts handle
malformed messages as well as possible.

The exception would be if there was a flood of a particular
malformation, I suppose (like there was the TypeError one a
while back).  This doesn't seem to be one of those, so closing.

If anyone disagrees, feel free to write some patches and
reopen <wink>.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=890691&group_id=61702


More information about the Spambayes-bugs mailing list