MIME handling: treat content-type=="text" as "text/plain". Needed for some very old messages
This commit is contained in:
parent
0050f96f57
commit
80fb2f553c
@ -546,8 +546,10 @@ void MimeHandlerMail::walkmime(Binc::MimePart* doc, int depth)
|
|||||||
// If the Content-Disposition is not inline, we treat it as
|
// If the Content-Disposition is not inline, we treat it as
|
||||||
// attachment, as per rfc2183.
|
// attachment, as per rfc2183.
|
||||||
// If it is inline but not text or html, same thing.
|
// 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) ||
|
if (stringlowercmp("inline", content_disposition.value) ||
|
||||||
(stringlowercmp(cstr_textplain, content_type.value) &&
|
(stringlowercmp(cstr_textplain, content_type.value) &&
|
||||||
|
stringlowercmp("text", content_type.value) &&
|
||||||
stringlowercmp("text/html", content_type.value)) ) {
|
stringlowercmp("text/html", content_type.value)) ) {
|
||||||
if (!filename.empty()) {
|
if (!filename.empty()) {
|
||||||
out += "\n";
|
out += "\n";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user