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

Fix extra mails

CCBUG: 433921
parent 2b953d99
Pipeline #53012 canceled with stage
......@@ -554,7 +554,7 @@ void KMComposerWin::insertSnippetInfo(const MailCommon::SnippetInfo &info)
{
{
if (!info.to.isEmpty()) {
const QStringList lst = info.to.split(QLatin1Char(','));
const QStringList lst = KEmailAddress::splitAddressList(info.to);
for (const QString &addr : lst) {
mComposerBase->recipientsEditor()->addRecipient(addr, MessageComposer::Recipient::To);
}
......@@ -562,7 +562,7 @@ void KMComposerWin::insertSnippetInfo(const MailCommon::SnippetInfo &info)
}
{
if (!info.cc.isEmpty()) {
const QStringList lst = info.cc.split(QLatin1Char(','));
const QStringList lst = KEmailAddress::splitAddressList(info.cc);
for (const QString &addr : lst) {
mComposerBase->recipientsEditor()->addRecipient(addr, MessageComposer::Recipient::Cc);
}
......@@ -570,7 +570,7 @@ void KMComposerWin::insertSnippetInfo(const MailCommon::SnippetInfo &info)
}
{
if (!info.bcc.isEmpty()) {
const QStringList lst = info.bcc.split(QLatin1Char(','));
const QStringList lst = KEmailAddress::splitAddressList(info.bcc);
for (const QString &addr : lst) {
mComposerBase->recipientsEditor()->addRecipient(addr, MessageComposer::Recipient::Bcc);
}
......
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