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
PIM Messagelib
Commits
b392df79
Commit
b392df79
authored
Apr 13, 2021
by
Laurent Montel
😁
Browse files
Convert bcc value
parent
69165aac
Pipeline
#57872
passed with stage
in 40 minutes and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecomposer/src/composer/composerviewinterface.cpp
View file @
b392df79
...
...
@@ -43,6 +43,14 @@ QString ComposerViewInterface::cc() const
return
{};
}
QString
ComposerViewInterface
::
bcc
()
const
{
if
(
mComposerView
)
{
return
mComposerView
->
bcc
();
}
return
{};
}
QString
ComposerViewInterface
::
from
()
const
{
if
(
mComposerView
)
{
...
...
messagecomposer/src/composer/composerviewinterface.h
View file @
b392df79
...
...
@@ -25,6 +25,7 @@ public:
Q_REQUIRED_RESULT
QString
subject
()
const
;
Q_REQUIRED_RESULT
QString
to
()
const
;
Q_REQUIRED_RESULT
QString
cc
()
const
;
Q_REQUIRED_RESULT
QString
bcc
()
const
;
Q_REQUIRED_RESULT
QString
from
()
const
;
Q_REQUIRED_RESULT
MessageComposer
::
ComposerAttachmentInterface
attachments
()
const
;
...
...
messagecomposer/src/snippet/convertsnippetvariablesjob.cpp
View file @
b392df79
...
...
@@ -134,6 +134,22 @@ QString ConvertSnippetVariablesJob::convertVariables(MessageComposer::ComposerVi
i
+=
strlen
(
"CCNAME"
);
const
QString
str
=
getNameFromEmail
(
composerView
->
cc
());
result
.
append
(
str
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"BCCADDR"
)))
{
i
+=
strlen
(
"BCCADDR"
);
const
QString
str
=
composerView
->
bcc
();
result
.
append
(
str
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"BCCFNAME"
)))
{
i
+=
strlen
(
"BCCFNAME"
);
const
QString
str
=
getFirstNameFromEmail
(
composerView
->
bcc
());
result
.
append
(
str
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"BCCLNAME"
)))
{
i
+=
strlen
(
"BCCLNAME"
);
const
QString
str
=
getLastNameFromEmail
(
composerView
->
bcc
());
result
.
append
(
str
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"BCCNAME"
)))
{
i
+=
strlen
(
"BCCNAME"
);
const
QString
str
=
getNameFromEmail
(
composerView
->
bcc
());
result
.
append
(
str
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"FULLSUBJECT"
)))
{
i
+=
strlen
(
"FULLSUBJECT"
);
const
QString
str
=
composerView
->
subject
();
...
...
Write
Preview
Markdown
is supported
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