Commit ae67e62c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to detect attachment when mail use alternative

(cherry picked from commit 85ccb981)
parent 0f380ced
......@@ -296,6 +296,6 @@ void AttachmentTest::testAttachment2()
root->parse();
//Fix show has attachment
//QCOMPARE(hasAttachment(root), true);
QCOMPARE(hasAttachment(root), true);
delete root;
}
......@@ -613,7 +613,7 @@ bool hasAttachment(Content *content)
// Ok, content itself is not an attachment. now we deal with multiparts
auto ct = content->contentType(false);
if (ct && ct->isMultipart() && !ct->isSubtype("related") && !ct->isSubtype("alternative")) {
if (ct && ct->isMultipart() && !ct->isSubtype("related")) {// && !ct->isSubtype("alternative")) {
Q_FOREACH (Content *child, content->contents()) {
if (hasAttachment(child)) {
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment