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

Allow to return in reply to

parent d41a0589
......@@ -11,4 +11,4 @@ Arguments:
- %cc returns "cc"
- %from returns "from"
- %bcc returns "bcc"
- %inreplyto returns "replyto"
......@@ -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;
}
......
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