зеркало из https://github.com/mozilla/pjs.git
fix 197228 create special folders for local accounts lazily, sr=mscott
This commit is contained in:
Родитель
f81cb69861
Коммит
da38da7a89
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче