|
a/src/internfile/mh_mail.cpp |
|
b/src/internfile/mh_mail.cpp |
|
... |
|
... |
544 |
}
|
544 |
}
|
545 |
|
545 |
|
546 |
// If the Content-Disposition is not inline, we treat it as
|
546 |
// If the Content-Disposition is not inline, we treat it as
|
547 |
// attachment, as per rfc2183.
|
547 |
// attachment, as per rfc2183.
|
548 |
// If it is inline but not text or html, same thing.
|
548 |
// If it is inline but not text or html, same thing.
|
|
|
549 |
// Some early MIME msgs have "text" instead of "text/plain" as type
|
549 |
if (stringlowercmp("inline", content_disposition.value) ||
|
550 |
if (stringlowercmp("inline", content_disposition.value) ||
|
550 |
(stringlowercmp(cstr_textplain, content_type.value) &&
|
551 |
(stringlowercmp(cstr_textplain, content_type.value) &&
|
|
|
552 |
stringlowercmp("text", content_type.value) &&
|
551 |
stringlowercmp("text/html", content_type.value)) ) {
|
553 |
stringlowercmp("text/html", content_type.value)) ) {
|
552 |
if (!filename.empty()) {
|
554 |
if (!filename.empty()) {
|
553 |
out += "\n";
|
555 |
out += "\n";
|
554 |
if (m_forPreview)
|
556 |
if (m_forPreview)
|
555 |
out += "[" + dispindic + " " + content_type.value + ": ";
|
557 |
out += "[" + dispindic + " " + content_type.value + ": ";
|