When we use "send again" make sure to assign FCC to current folder.

it avoids problem when we open this email in another computer
Bug found and discussed with David

CCMAIL: faure@kde.org
wilder
Laurent Montel 6 years ago
parent 19cb1de2ab
commit 3d72780798
  1. 2
      src/editor/kmcomposerwin.cpp
  2. 3
      src/kmcommands.cpp

@ -1801,6 +1801,8 @@ void KMComposerWin::setFcc(const QString &idString)
if (col.isValid()) {
mComposerBase->setFcc(col);
mFccFolder->setCollection(col);
} else {
qCWarning(KMAIL_LOG) << "setFcc: collection invalid " << idString;
}
}

@ -1819,6 +1819,9 @@ KMCommand::Result KMResendMessageCommand::execute()
KMail::Util::lastEncryptAndSignState(lastEncrypt, lastSign, msg);
win->setMessage(newMsg, lastSign, lastEncrypt, false, true);
//Make sure to use current folder as requested by David
//We avoid to use an invalid folder when we open an email on two different computer.
win->setFcc(QString::number(item.parentCollection().id()));
win->show();
return OK;

Loading…
Cancel
Save