50572 r=bienvenu sr=mscott a=pdt. check if the folder is noSelect folder and

return appropriately
This commit is contained in:
naving%netscape.com 2001-06-06 03:32:19 +00:00
Родитель 72e876fa2d
Коммит 8000e367d8
1 изменённых файлов: 13 добавлений и 5 удалений

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

@ -1273,11 +1273,19 @@ NS_IMETHODIMP nsImapIncomingServer::OnlineFolderRename(const char *oldName, cons
NS_IMETHODIMP nsImapIncomingServer::FolderIsNoSelect(const char *aFolderName, PRBool *result)
{
if (!result)
return NS_ERROR_NULL_POINTER;
*result = PR_FALSE;
return NS_OK;
if (!result)
return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIMsgFolder> msgFolder;
nsresult rv = GetFolder(aFolderName, getter_AddRefs(msgFolder));
if (NS_SUCCEEDED(rv) && msgFolder)
{
PRUint32 flags;
msgFolder->GetFlags(&flags);
*result = ((flags & MSG_FOLDER_FLAG_IMAP_NOSELECT) != 0);
}
else
*result = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP nsImapIncomingServer::SetFolderAdminURL(const char *aFolderName, const char *aFolderAdminUrl)