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 Vitold S
Recipients Vitold S, barry, r.david.murray
Date 2016-12-05.19:04:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480964649.95.0.801978620213.issue28881@psf.upfronthosting.co.za>
In-reply-to
Content
I have MIME message and parse content. Later I walk on message headers by call for and receive follow traceback:

Traceback (most recent call last):
...
    for m in msg:  (msg is email.message.Message instance)
  File "C:\Python27\lib\email\message.py", line 294, in __getitem__
    return self.get(name)
  File "C:\Python27\lib\email\message.py", line 360, in get
    name = name.lower()
AttributeError: 'int' object has no attribute 'lower'

But with items() all work properly.
History
Date User Action Args
2016-12-05 19:04:09Vitold Ssetrecipients: + Vitold S, barry, r.david.murray
2016-12-05 19:04:09Vitold Ssetmessageid: <1480964649.95.0.801978620213.issue28881@psf.upfronthosting.co.za>
2016-12-05 19:04:09Vitold Slinkissue28881 messages
2016-12-05 19:04:09Vitold Screate