Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
b5228c2d
Commit
b5228c2d
authored
May 29, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to return in reply to
parent
d41a0589
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
plugins/messageviewerplugins/externalscriptplugin/README
plugins/messageviewerplugins/externalscriptplugin/README
+1
-1
plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscriptparseargument.cpp
...lscriptplugin/viewerpluginexternalscriptparseargument.cpp
+3
-0
No files found.
plugins/messageviewerplugins/externalscriptplugin/README
View file @
b5228c2d
...
...
@@ -11,4 +11,4 @@ Arguments:
- %cc returns "cc"
- %from returns "from"
- %bcc returns "bcc"
- %inreplyto returns "replyto"
plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscriptparseargument.cpp
View file @
b5228c2d
...
...
@@ -53,6 +53,9 @@ QStringList ViewerPluginExternalScriptParseArgument::parse(const QStringList &sc
}
else
if
(
arg
==
QString
::
fromLatin1
(
"%body"
))
{
const
QByteArray
body
=
mMessage
?
mMessage
->
body
()
:
Q_NULLPTR
;
newArguments
<<
QStringLiteral
(
"
\"
%1
\"
"
).
arg
(
QLatin1String
(
body
));
}
else
if
(
arg
==
QString
::
fromLatin1
(
"%inreplyto"
))
{
KMime
::
Headers
::
InReplyTo
*
inReplyTo
=
mMessage
?
mMessage
->
inReplyTo
(
false
)
:
Q_NULLPTR
;
newArguments
<<
QStringLiteral
(
"
\"
%1
\"
"
).
arg
(
inReplyTo
?
inReplyTo
->
asUnicodeString
()
:
QString
());
}
else
{
newArguments
<<
arg
;
}
...
...
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