This commit is contained in:
putterman%netscape.com 1999-04-16 22:56:38 +00:00
Родитель 5cd2651bdf
Коммит c5e288fe92
1 изменённых файлов: 10 добавлений и 5 удалений

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

@ -151,18 +151,23 @@ nsresult
nsMsgLocalMailFolder::CreateSubFolders(nsFileSpec &path)
{
nsresult rv = NS_OK;
nsAutoString currentFolderName;
nsAutoString currentFolderNameStr;
nsIMsgFolder *child;
char *folderName;
for (nsDirectoryIterator dir(path); dir.Exists(); dir++) {
nsFileSpec currentFolderPath = (nsFileSpec&)dir;
currentFolderName = currentFolderPath.GetLeafName();
if (nsShouldIgnoreFile(currentFolderName))
folderName = currentFolderPath.GetLeafName();
currentFolderNameStr = folderName;
if (nsShouldIgnoreFile(currentFolderNameStr))
{
PL_strfree(folderName);
continue;
}
AddSubfolder(currentFolderName, &child);
AddSubfolder(currentFolderNameStr, &child);
NS_IF_RELEASE(child);
PL_strfree(folderName);
}
return rv;
}