[issue21079] EmailMessage.is_attachment == False if filename is present

Brandon Rhodes report at bugs.python.org
Thu Mar 27 18:47:06 CET 2014


Brandon Rhodes added the comment:

Given that methods like get_param() already exist for pulling data out of
the right-hand-side of the ';' in a parameterized email header, would it
be amiss for EmailMessage to also have a method that either returns
everything to the left of the semicolon, or returns something like:

('attachment', [('filename', 'example.txt')])

thus doing all the parsing in one place that everything else can then
steadily rely upon, including users that want to pull the parsed values
for their own inspection?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21079>
_______________________________________


More information about the Python-bugs-list mailing list