зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
4fbc8befaf
Коммит
cc1a772963
|
@ -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));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче