dict_from_attachment doesn't set content_type in the output dict. This means that if you created an attachment using make_attachment_dict with a content type, and at some point the attachment gets passed through dict_from_attachment (e.g. when calling make_message), the content type is lost.
dict_from_attachment
doesn't setcontent_type
in the output dict. This means that if you created an attachment usingmake_attachment_dict
with a content type, and at some point the attachment gets passed throughdict_from_attachment
(e.g. when callingmake_message
), the content type is lost.