[Spambayes] Problems with unheader.py

Tim Peters tim.one@comcast.net
Tue, 24 Sep 2002 22:09:33 -0400


[Greg Ward]
> ...
> OK: anyone know how to get the raw message body from an email.Message
> object?  Or am I gonna have to RTFM?

Barry knows, but he usually won't tell you anything unless you buy him lunch
first.

str(msg) returns the whole msg as a string, including the headers.  I'm not
aware of a way to get just the body (unless you luck out and it's not
multipart, in which case get_payload() does the trick).