Bug #219586 --> Eudora, Outlook mailboxes with "/" in name fail to import. Unable to create local folders

with forward slashes in the name on Windows.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-08-18 21:54:11 +00:00
Родитель cae627c921
Коммит ae05d845b2
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -865,7 +865,9 @@ nsMsgLocalMailFolder::CreateSubfolder(const PRUnichar *folderName, nsIMsgWindow
}
//GetFlags and SetFlags in AddSubfolder will fail because we have no db at this point but mFlags is set.
rv = AddSubfolder(nsDependentString(folderName), getter_AddRefs(child));
nsAutoString folderNameStr;
folderNameStr.AssignWithConversion(safeFolderName);
rv = AddSubfolder(folderNameStr, getter_AddRefs(child));
if (!child || NS_FAILED(rv))
{
path.Delete(PR_FALSE);
@ -887,7 +889,7 @@ nsMsgLocalMailFolder::CreateSubfolder(const PRUnichar *folderName, nsIMsgWindow
rv = unusedDB->GetDBFolderInfo(getter_AddRefs(folderInfo));
if(NS_SUCCEEDED(rv))
{
folderInfo->SetMailboxName(nsDependentString(folderName));
folderInfo->SetMailboxName(folderNameStr);
}
unusedDB->SetSummaryValid(PR_TRUE);
unusedDB->Close(PR_TRUE);