summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-16 20:15:48 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-16 20:15:48 (GMT)
commite31bba2f5c244acd9f3fd1205711da51c7f04619 (patch)
tree8d2aa6d230b2df67266954e0a53895b569ea7a63
parent5415f4944e23517b90c509fb18451286ede8eef2 (diff)
Fix split emails
-rw-r--r--kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp b/kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp
index f251b33..9311fd7 100644
--- a/kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp
+++ b/kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp
@@ -23,8 +23,10 @@
#include "confirmaddresscheckjob.h"
#include <QPointer>
+#include <QDebug>
#include <KConfigGroup>
#include <KSharedConfig>
+#include <KEmailAddress>
#include <KIdentityManagement/IdentityManager>
#include <KIdentityManagement/Identity>
@@ -52,7 +54,7 @@ bool ConfirmAddressInterface::exec(const MessageComposer::PluginEditorCheckBefor
return true;
}
const QString str = lst.join(QStringLiteral(", "));
- const QStringList emails = str.split(QStringLiteral(", "));
+ const QStringList emails = KEmailAddress::splitAddressList(str);
#if 0
MessageComposer::AliasesExpandJob job(params.addresses().join(QStringLiteral(", ")), params.defaultDomain(), this);
if (job.exec()) {