raw headers in rfc822.Message
greetings, since the raw headers don't seem to be available in an rfc822.Message, i added a quick two line hack to populate a rawheaders member. attached is a patch to rfc822.py from the python 2.2.1 distribution. if you don't like my two line hack, consider this a request to provide the raw headers in some way in an rfc822.Message. thanks, john spurling -- "nothing brings people together like doom." --sarah vowell
On Mon, Sep 09, 2002, john spurling wrote:
since the raw headers don't seem to be available in an rfc822.Message, i added a quick two line hack to populate a rawheaders member. attached is a patch to rfc822.py from the python 2.2.1 distribution.
File a bug report on SourceForge. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ Project Vote Smart: http://www.vote-smart.org/
"js" == john spurling
writes:
js> since the raw headers don't seem to be available in an js> rfc822.Message, i added a quick two line hack to populate a js> rawheaders member. attached is a patch to rfc822.py from the js> python 2.2.1 distribution. js> if you don't like my two line hack, consider this a request to js> provide the raw headers in some way in an rfc822.Message. Why not just use email.Message.Message? You can get the original headers from it, and the email package tries really hard to produce output identical to the input. -Barry
participants (3)
-
Aahz
-
barry@python.org
-
john spurling