Is this a mimetools/rfc822 bug?
Barry A. Warsaw
barry at digicool.com
Mon Jun 25 16:37:51 EDT 2001
>>>>> "SK" == Sheila King <sheila at spamcop.net> writes:
SK> So far as I know, leading newline characters are not allowed
SK> in the header. A newline character indicates the end of the
SK> headers.
Correct, and rfc822 is fairly strict about what it accepts. Leading
empty lines in the text will toggle it over from "reading-headers"
mode to "reading-body" mode. It's even worse if you have no headers,
but your first body line has a colon in it!
Moral: massage and normalize your text before feeding it to rfc822.
-Barry
More information about the Python-list
mailing list