combining mailbox and email modules

Matthew Dixon Cowles matt at mondoinfo.com
Thu Sep 26 19:58:52 CEST 2002


On Thu, 26 Sep 2002 06:14:03 GMT, Bob Horvath <nospam at horvath.com>
wrote:

> OK, I tried that.  Looks like the email package is being picky about 
> things where I can't see a problem.
> 
> 
> I keep getting the following error:
> 
> email.Errors.HeaderParseError: Not a header, not a continuation
> 
> Which I assume means a line that doesn't start with a space or tab 
> that also does not contain a ':'.
> 
> The problem is that it looks good to me.

I'd run your program in such a way that you can do a pdb.pm() after
the exception is raised and see what's in the variable line. I'd bet
that the message got some extra newlines in it somewhere along the way
but it's hard to tell after it has been wrapped for news posting.

Regards,
Matt



More information about the Python-list mailing list