charlierguo / gmail

A Pythonic interface for Google Mail
MIT License
1.77k stars 386 forks source link

Bug in attachment handling #31

Closed yanlyub closed 10 years ago

yanlyub commented 10 years ago

Attachment handling forces the application to exit with the following error:

  File "lib/gmail/gmail/message.py", line 171, in fetch
    self.parse(results[0])
  File "lib/gmail/gmail/message.py", line 164, in parse
    self.attachments = [Attachment(attachment) for attachment in self.message._payload if attachment.get('Content-Disposition') is not None]
AttributeError: 'str' object has no attribute 'get'