Message214978
That facility already mostly exists. The bug is that the code in question doesn't use it.
>>> m['Content-Disposition'].content_disposition
'attachment'
>>> m['Content-Disposition'].params
{'filename': 'attachment.gz'}
On the other hand, looking at that it is obvious there should be a generic 'value' attribute on all MIME headers so that that could be written:
m['Content-Disposition'].value == 'attachment'
where value would be the 'canonical form' of the value for that header when there is one, including normalizing the case. Some headers still want specialized attributes (Content-Type's maintype and subtype, for example), but there is always the value/params split, and that ought to be accessible generically and currently isn't.
This is why this stuff is still provisional :) |
|
Date |
User |
Action |
Args |
2014-03-27 18:49:14 | r.david.murray | set | recipients:
+ r.david.murray, barry, brandon-rhodes |
2014-03-27 18:49:14 | r.david.murray | set | messageid: <1395946154.29.0.421358809951.issue21079@psf.upfronthosting.co.za> |
2014-03-27 18:49:14 | r.david.murray | link | issue21079 messages |
2014-03-27 18:49:14 | r.david.murray | create | |
|