diff --git a/imbox/parser.py b/imbox/parser.py index 0749e19..24dd7b4 100644 --- a/imbox/parser.py +++ b/imbox/parser.py @@ -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: