Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
c2faa658
Commit
c2faa658
authored
Mar 04, 2021
by
Laurent Montel
😁
Browse files
Fix extra mails
CCBUG: 433921
parent
2b953d99
Pipeline
#53012
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/editor/kmcomposerwin.cpp
View file @
c2faa658
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment