Message107046
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.
Thoughts?
Thanks,
Forest |
|
Date |
User |
Action |
Args |
2010-06-04 13:11:07 | forest_atq | set | recipients:
+ forest_atq, barry, guettli, orsenthil, pitrou, catlee, gotgenes, ajaksu2, jnoller, eric.araujo, fsteinel, r.david.murray, shazow, alexz, tamentis |
2010-06-04 13:11:06 | forest_atq | set | messageid: <1275657066.99.0.435674758347.issue3244@psf.upfronthosting.co.za> |
2010-06-04 13:11:05 | forest_atq | link | issue3244 messages |
2010-06-04 13:11:04 | forest_atq | create | |
|