fix 197228 create special folders for local accounts lazily, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2006-11-28 21:49:40 +00:00
Родитель f81cb69861
Коммит da38da7a89
2 изменённых файлов: 1 добавлений и 15 удалений

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

@ -192,11 +192,6 @@ NS_IMETHODIMP nsNoIncomingServer::CreateDefaultMailboxes(nsIFileSpec *path)
CreateLocalFolder(path, "Trash");
if (NS_FAILED(rv)) return rv;
rv = CreateLocalFolder(path, "Sent");
if (NS_FAILED(rv)) return rv;
rv = CreateLocalFolder(path, "Drafts");
if (NS_FAILED(rv)) return rv;
// copy the default templates into the Templates folder
nsCOMPtr<nsIFileSpec> parentDir;
rv = path->GetParent(getter_AddRefs(parentDir));
@ -204,9 +199,6 @@ NS_IMETHODIMP nsNoIncomingServer::CreateDefaultMailboxes(nsIFileSpec *path)
rv = CopyDefaultMessages("Templates",parentDir);
if (NS_FAILED(rv)) return rv;
rv = CreateLocalFolder(path, "Drafts");
if (NS_FAILED(rv)) return rv;
(void ) CreateLocalFolder(path, "Unsent Messages");
return NS_OK;
}

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

@ -409,13 +409,7 @@ NS_IMETHODIMP nsPop3IncomingServer::CreateDefaultMailboxes(nsIFileSpec *path)
(void) path->AppendRelativeUnixPath("Inbox");
nsresult rv = CreateLocalFolder(path, "Inbox");
if (NS_FAILED(rv)) return rv;
rv = CreateLocalFolder(path, "Trash");
if (NS_FAILED(rv)) return rv;
rv = CreateLocalFolder(path, "Sent");
if (NS_FAILED(rv)) return rv;
rv = CreateLocalFolder(path, "Drafts");
if (NS_FAILED(rv)) return rv;
return CreateLocalFolder(path, "Templates");
return CreateLocalFolder(path, "Trash");
}
// override this so we can say that deferred accounts can't have messages