Commit db9f2aef authored by Laurent Montel's avatar Laurent Montel 😁

Fix return number of duplicate emails

parent dcefcad5
......@@ -71,9 +71,12 @@ bool CheckBeforeSendInterface::exec(const MessageComposer::PluginEditorCheckBefo
}
if (mCheckDuplicateEmails) {
const QStringList lst{ params.bccAddresses(), params.toAddresses(), params.ccAddresses() };
if (!lst.isEmpty()) {
const QString str = lst.join(QStringLiteral(", "));
const QStringList emails = str.split(QStringLiteral(", "));
if (!emails.isEmpty()) {
CheckDuplicateEmailsJob job;
job.setEmails(lst);
job.setEmails(emails);
job.start();
const QMap<QString, int> results = job.result();
if (!results.isEmpty()) {
......
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