Message215004
I agree that is_attachment supports the most common use-case of people who need to inspect the content disposition!
But people implementing heavyweight tools and email clients might additionally need to distinguish between a MIME part whose disposition is explicitly "inline" and a MIME part whose disposition is simply unspecified — since the RFC seems to allow clients quite a bit of freedom in the case where it is entirely unspecified:
"Content-Disposition is an optional header field. In its absence, the MUA may use whatever presentation method it deems suitable." — RFC 2183
And a three-possibility 'inline'|'attachment'|None return value from get_content_disposition() would perfectly reflect the three possibilities envisioned in the standard. |
|
| Date |
User |
Action |
Args |
| 2014-03-27 23:37:32 | brandon-rhodes | set | recipients:
+ brandon-rhodes, barry, r.david.murray |
| 2014-03-27 23:37:32 | brandon-rhodes | set | messageid: <[email protected]> |
| 2014-03-27 23:37:32 | brandon-rhodes | link | issue21079 messages |
| 2014-03-27 23:37:31 | brandon-rhodes | create | |
|