Author nirs
Recipients nirs
Date 2007-08-24.13:33:44
SpamBayes Score 0.0022615
Marked as misclassified No
Message-id <1187962425.36.0.406803838673.issue1011@psf.upfronthosting.co.za>
In-reply-to
Content
In http://docs.python.org/lib/message-objects.html, getheader doc say:

 "Like getrawheader(name), but strip leading and trailing whitespace. 
Internal whitespace is not stripped. The optional default argument can 
be used to specify a different default to be returned when there is no 
header matching name."

However, getheader is not like getrawheader. getheader return the *last* 
header seen, using the message dict. getrawheader retruns the *first* 
header line seen, searching through the list of parsed header lines.

The text should also note that getheader is faster and the preferred way 
to get parsed headers.
History
Date User Action Args
2007-08-24 13:33:45nirssetspambayes_score: 0.0022615 -> 0.0022615
recipients: + nirs
2007-08-24 13:33:45nirssetspambayes_score: 0.0022615 -> 0.0022615
messageid: <1187962425.36.0.406803838673.issue1011@psf.upfronthosting.co.za>
2007-08-24 13:33:45nirslinkissue1011 messages
2007-08-24 13:33:44nirscreate