Skip to content

Attachments (i.e. photos) from newest iOS (iPhone) aren't decoded by smblib

Normally, MIME-attachments are decoded and available for downloaded when reading an email. This isn't working with the latest iOS/iPhones (single photo attachment).

Example problematic message body:

--Apple-Mail-C3E7F37A-1CD1-4CB5-A10C-F13DD02CA284
Content-Type: text/plain;
        charset=us-ascii
Content-Transfer-Encoding: 7bit




--Apple-Mail-C3E7F37A-1CD1-4CB5-A10C-F13DD02CA284
Content-Type: image/jpeg;
        name=IMG_6632.JPEG;
        x-apple-part-url=FC4DCFCB-47EE-4BFB-973D-926D64305DA0
Content-Disposition: inline;
        filename=IMG_6632.JPEG
Content-Transfer-Encoding: base64

/9j/4AAUSkZJRgABAQEBLAEsAABBTVBG/+EKhEV4aWYAAE1NACoAAAAIAA4BDwACAAAABgAAALYB 
...