If we cannot decode the attachment then dump the content in bytes. This is needed for images (jpg, png, etc) and pdf.
Signed-off-by: Clement Verna cverna@tutanota.com
Looks fine, you may want to consider the binaryornot module to detect if the file is binary as the current approach relies on the assumption the attachment is always UTF-8
binaryornot
Thanks I'll merge this one, and add binary or not on my todo list :smile:
Pull-Request has been merged by cverna
If we cannot decode the attachment then dump the content in bytes. This is needed for images (jpg, png, etc) and pdf.
Signed-off-by: Clement Verna cverna@tutanota.com