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

Add missing in-reply-to support

BUG: 427697
FIXED-IN: 5.15.3
wilder
Laurent Montel 5 years ago
parent 15a5bed7d0
commit a4715e7efc
  1. 6
      src/job/opencomposerjob.cpp

@ -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) {

Loading…
Cancel
Save