Commit 09d575e9 authored by Sandro Knauß's avatar Sandro Knauß

get rid of ObjectTreeParser::findType

parent 372f9b1d
......@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
set(MAILCOMMON_LIB_VERSION "5.2.40")
set(MAILCOMMON_LIB_VERSION "5.2.54")
set(KF5_VERSION "5.19.0")
set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(MESSAGELIB_LIB_VERSION "5.2.46")
......
......@@ -23,6 +23,7 @@
#include <messagecore/messagehelpers.h>
#include <MessageComposer/MessageFactory>
#include <MessageComposer/Util>
using MessageComposer::MessageFactory;
#include <messageviewer/messageviewersettings.h>
......@@ -228,10 +229,8 @@ QPair< bool, KMime::MDN::SendingMode > MDNAdviceHelper::checkAndSetMDNInfo(
}
// RFC 2298: An MDN MUST NOT be generated in response to an MDN.
if (MimeTreeParser::ObjectTreeParser::findType(msg.data(),
"message",
"disposition-notification",
true, true)) {
if (MessageComposer::Util::findTypeInMessage(msg.data(),
"message", "disposition-notification")) {
mdnStateAttr->setMDNState(MailCommon::MDNStateAttribute::MDNIgnore);
} else if (mode == 0) { // ignore
doSend = false;
......
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