[Python-Dev] raw headers in rfc822.Message
Barry A. Warsaw
Mon, 9 Sep 2002 16:11:46 -0400
>>>>> "js" == john spurling <firstname.lastname@example.org> 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.