Bug 467527 - "Restart needed for localized folder name (Drafts/Junk/Sent/Templates/Archives name in folderpane tree)" - fix fcc to reply folder case [r+sr=Standard8]

This commit is contained in:
David :Bienvenu 2009-08-07 10:27:35 +01:00
Родитель da6c028ea2
Коммит cee9020d98
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -379,7 +379,13 @@ nsMsgCopy::GetSentFolder(nsIMsgIdentity *userIdentity, nsIMsgFolder **folder, PR
{
nsresult ret = LocateMessageFolder(userIdentity, nsIMsgSend::nsMsgDeliverNow, mSavePref, folder);
if (*folder)
(*folder)->SetFlag(nsMsgFolderFlags::SentMail);
{
// If mSavePref is the same as the identity's fcc folder, set the sent flag.
nsCString identityFccUri;
userIdentity->GetFccFolder(identityFccUri);
if (identityFccUri.Equals(mSavePref))
(*folder)->SetFlag(nsMsgFolderFlags::SentMail);
}
CreateIfMissing(folder, waitForUrl);
return ret;
}