From 80fb2f553c331e55bcd209f12b67487fc5cd78ea Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 18 Mar 2012 08:26:44 +0100 Subject: [PATCH] MIME handling: treat content-type=="text" as "text/plain". Needed for some very old messages --- src/internfile/mh_mail.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internfile/mh_mail.cpp b/src/internfile/mh_mail.cpp index 0fd3d4ed..c6c09a99 100644 --- a/src/internfile/mh_mail.cpp +++ b/src/internfile/mh_mail.cpp @@ -546,8 +546,10 @@ void MimeHandlerMail::walkmime(Binc::MimePart* doc, int depth) // If the Content-Disposition is not inline, we treat it as // attachment, as per rfc2183. // If it is inline but not text or html, same thing. + // Some early MIME msgs have "text" instead of "text/plain" as type if (stringlowercmp("inline", content_disposition.value) || (stringlowercmp(cstr_textplain, content_type.value) && + stringlowercmp("text", content_type.value) && stringlowercmp("text/html", content_type.value)) ) { if (!filename.empty()) { out += "\n";