Skip to content

Commit

Permalink
Merge pull request #174 from Anderseta/patch-1
Browse files Browse the repository at this point in the history
Attachments now getting Content-ID
  • Loading branch information
martinrusev committed Sep 26, 2019
2 parents 743d70b + aac221e commit fd68b35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imbox/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def parse_attachment(message_part):
attachment = {
'content-type': message_part.get_content_type(),
'size': len(file_data),
'content': io.BytesIO(file_data)
'content': io.BytesIO(file_data),
'content-id': message_part.get("Content-ID", None)
}
filename = message_part.get_param('name')
if filename:
Expand Down

0 comments on commit fd68b35

Please sign in to comment.