combining mailbox and email modules

Bob Horvath nospam at horvath.com
Sat Sep 28 16:32:24 EDT 2002


James J. Besemer wrote:
> 
> François Granger wrote:
> 
>> Bob Horvath <nospam at horvath.com> wrote:
>>
>>  
>>
>>> The problem is that it looks good to me.  I've played around with it, 
>>> and if I take out the MIME gunk (It actually is a Klez virus), it 
>>> parses ok.
>>>   
>>
>>
>> I have had difficulties with the handling of multipart message with the
>> email package. I did not found a solution yet.
>>
> My experience is that a lot of Spam violates Mime rules.  Often they 
> omit the end marker, I guess relying on EOF to terminate the message. 
> Then the python packages can't parse any of the remaining messages.
> 
> --jb
> 

I was assuming the mailbox package handled splitting things in to 
messages correctly.  The HeaderParser class seemed to solve it for 
me, but then I wasn't interested inparsing the body.




More information about the Python-list mailing list