151699 r=cavin sr=bienvenu If copying berkeley mailbox or summary file fails, bail out. This fixes losing

local folders when we try to move them and have insufficient disk space
This commit is contained in:
naving%netscape.com 2002-06-25 01:14:31 +00:00
Родитель 4fbc8befaf
Коммит cc1a772963
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -2006,8 +2006,11 @@ nsMsgLocalMailFolder::CopyFolderLocal(nsIMsgFolder *srcFolder, PRBool isMoveFold
nsFileSpec path = oldPath;
path.CopyToDir(newPath); //necessary for aborting....
summarySpec.CopyToDir(newPath);
rv = path.CopyToDir(newPath); //copying necessary for aborting.... if failure return
NS_ENSURE_SUCCESS(rv, rv);
rv = summarySpec.CopyToDir(newPath);
NS_ENSURE_SUCCESS(rv, rv);
AddSubfolder(&folderName, getter_AddRefs(newMsgFolder));