]> khamidou — GitHub mirrors - flanker.git/commit
Don't throw an exception for .eml attachments with broken MIME.
authorJeremy Schlatter <jeremy.schlatter@gmail.com>
Tue, 2 Dec 2014 23:37:44 +0000 (15:37 -0800)
committerJeremy Schlatter <jeremy.schlatter@gmail.com>
Tue, 2 Dec 2014 23:37:44 +0000 (15:37 -0800)
commitc00899dd19386b2c394c701996b18c20bba8d51c
treede2817343791c980ed970c850ed0b260f3fa5edd
parent7676b1918ef245a5d05c12d5b574025c4ec31c73
Don't throw an exception for .eml attachments with broken MIME.

This function used to fail when creating an attachment that happened to
contain text with broken MIME. Now when that happens, we just encode it
and call the attachment type 'text/plain'.
flanker/mime/create.py