This commit is contained in:
alecf%netscape.com 1999-12-02 07:37:23 +00:00
Родитель 4fcb5fd7ca
Коммит c4816e82aa
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -49,7 +49,7 @@
#include "nsIMsgIncomingServer.h"
#include "nsIImapIncomingServer.h"
#include "nsIImapService.h"
#include "nsIMsgMailSession.h"
#include "nsIMsgAccountManager.h"
#include "nsIImapLog.h"
#include "nsIImapMailFolderSink.h"
#include "nsIImapMessageSink.h"
@ -396,17 +396,17 @@ nsresult nsIMAP4TestDriver::OnExit()
return NS_OK;
}
static NS_DEFINE_CID(kCMsgMailSessionCID, NS_MSGMAILSESSION_CID);
nsresult nsIMAP4TestDriver::OnIdentityCheck()
{
nsresult result = NS_OK;
NS_WITH_SERVICE(nsIMsgMailSession, mailSession, kCMsgMailSessionCID, &result);
if (NS_SUCCEEDED(result) && mailSession)
NS_WITH_SERVICE(nsIMsgAccountManager, accountManager,
NS_MSGACCOUNTMANAGER_PROGID, &result);
if (NS_SUCCEEDED(result) && accountManager)
{
nsIMsgIncomingServer * server = nsnull;
result = mailSession->GetCurrentServer(&server);
result = accountManager->GetCurrentServer(&server);
if (NS_SUCCEEDED(result) && server)
{
char * value = nsnull;