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

Fix Bug 427697 - KMail did not apply data from mailto information.

Add missing in-reply-to support

BUG: 427697
FIXED-IN: 5.15.3
parent 15a5bed7
Pipeline #37708 failed with stage
in 10 minutes and 29 seconds
......@@ -80,6 +80,10 @@ void OpenComposerJob::start()
if (!mOpenComposerSettings.mReplyTo.isEmpty()) {
mMsg->replyTo()->fromUnicodeString(mOpenComposerSettings.mReplyTo, "utf-8");
}
if (!mOpenComposerSettings.mInReplyTo.isEmpty()) {
mMsg->inReplyTo()->fromUnicodeString(mOpenComposerSettings.mInReplyTo, "utf-8");
}
if (!mOpenComposerSettings.mMessageFile.isEmpty() && QFile::exists(mOpenComposerSettings.mMessageFile)) {
QFile f(mOpenComposerSettings.mMessageFile);
......@@ -120,7 +124,7 @@ void OpenComposerJob::slotOpenComposer()
if (!mOpenComposerSettings.mTo.isEmpty()) {
cWin->setFocusToSubject();
}
QList<QUrl> attachURLs = QUrl::fromStringList(mOpenComposerSettings.mAttachmentPaths);
const QList<QUrl> attachURLs = QUrl::fromStringList(mOpenComposerSettings.mAttachmentPaths);
QList<QUrl>::ConstIterator endAttachment(attachURLs.constEnd());
QList<KMail::Composer::AttachmentInfo> infoList;
for (QList<QUrl>::ConstIterator it = attachURLs.constBegin(); it != endAttachment; ++it) {
......
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