This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author forest_atq
Recipients ajaksu2, alexz, barry, catlee, eric.araujo, forest_atq, fsteinel, gotgenes, guettli, jnoller, orsenthil, pitrou, r.david.murray, shazow, tamentis
Date 2010-06-04.13:11:04
SpamBayes Score 0.09388014
Marked as misclassified No
Message-id <>
Hm, there is one issue.  The example in the docstring wouldn't work.

You have to get the headers *after* the body, because the boundary isn't generated until the body has been.  So this would work:

  body = msg.get_body()
  headers = dict(msg)

But this won't:

  headers = dict(msg)
  body = msg.get_body()

I'm not sure what the best way to deal with this is.  Maybe instead of get_body we should have get_request_data which returns both headers and body.  That would provide simpler semantics.


Date User Action Args
2010-06-04 13:11:07forest_atqsetrecipients: + forest_atq, barry, guettli, orsenthil, pitrou, catlee, gotgenes, ajaksu2, jnoller, eric.araujo, fsteinel, r.david.murray, shazow, alexz, tamentis
2010-06-04 13:11:06forest_atqsetmessageid: <>
2010-06-04 13:11:05forest_atqlinkissue3244 messages
2010-06-04 13:11:04forest_atqcreate