Program not Stripping Headers from Email though Working fine
Gerrit
gerrit at nl.linux.org
Thu Mar 4 10:33:38 EST 2004
dont bother wrote:
> The code is here, but I dont know why the headers are
> still present in the output file.
> fwrite.write(msg.as_string())
~~~~~~~~~~~~~~~
The as_string header returns both the headers and the body. You want
something like get_payload()
Gerrit.
--
Weather in Twenthe, Netherlands 04/03 14:55 UTC:
7.0°C haze mostly clear wind 4.5 m/s E (57 m above NAP)
--
Asperger's Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/
More information about the Python-list
mailing list