Commit 74bd6d79 authored by Laurent Montel's avatar Laurent Montel 😁

Fix generate correct list of emails

parent 48f87573
......@@ -19,6 +19,7 @@
#include "checkduplicateemailsjob.h"
#include <KEmailAddress>
#include <PimCommon/PimUtil>
CheckDuplicateEmailsJob::CheckDuplicateEmailsJob()
{
......@@ -59,10 +60,7 @@ void CheckDuplicateEmailsJob::start()
void CheckDuplicateEmailsJob::setEmails(const QStringList &list)
{
const QString str = list.join(QStringLiteral(", "));
const QStringList emails = str.split(QStringLiteral(", "));
mEmails = emails;
mEmails = PimCommon::Util::generateEmailList(list);
}
QMap<QString, int> CheckDuplicateEmailsJob::result() const
......
......@@ -31,6 +31,7 @@
#include <KIdentityManagement/IdentityManager>
#include <KIdentityManagement/Identity>
#include <MessageComposer/AliasesExpandJob>
#include <PimCommon/PimUtil>
ConfirmAddressInterface::ConfirmAddressInterface(QObject *parent)
: MessageComposer::PluginEditorCheckBeforeSendInterface(parent)
......@@ -61,8 +62,7 @@ bool ConfirmAddressInterface::exec(const MessageComposer::PluginEditorCheckBefor
if (settings.mDomains.isEmpty() && settings.mWhiteLists.isEmpty()) {
return true;
}
const QString str = lst.join(QStringLiteral(", "));
const QStringList emails = KEmailAddress::splitAddressList(str);
const QStringList emails = PimCommon::Util::generateEmailList(lst);
#if 0
MessageComposer::AliasesExpandJob job(params.addresses().join(QStringLiteral(", ")), params.defaultDomain(), this);
if (job.exec()) {
......
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