implemented GetNewMessages() for a selected folder

This commit is contained in:
jefft%netscape.com 1999-05-10 22:25:26 +00:00
Родитель f1e63c02be
Коммит 4ff1f8b51b
2 изменённых файлов: 12 добавлений и 2 удалений

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

@ -511,7 +511,6 @@ NS_IMETHODIMP nsImapMailFolder::GetMessages(nsIEnumerator* *result)
return rv;
}
NS_IMETHODIMP nsImapMailFolder::CreateSubfolder(const char *folderName)
{
nsresult rv = NS_OK;
@ -851,6 +850,15 @@ NS_IMETHODIMP nsImapMailFolder::DeleteMessage(nsIMessage* message)
return rv;
}
NS_IMETHODIMP nsImapMailFolder::GetNewMessages()
{
nsresult rv = NS_ERROR_FAILURE;
NS_WITH_SERVICE(nsIImapService, imapService, kCImapService, &rv);
if (NS_FAILED(rv)) return rv;
rv = imapService->SelectFolder(m_eventQueue, this, this, nsnull);
return rv;
}
NS_IMETHODIMP nsImapMailFolder::PossibleImapMailbox(
nsIImapProtocol* aProtocol, mailbox_spec* aSpec)
{

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

@ -97,7 +97,9 @@ public:
virtual nsresult GetDBFolderInfoAndDB(nsIDBFolderInfo **folderInfo,
nsIMsgDatabase **db);
NS_IMETHOD DeleteMessage(nsIMessage *message);
NS_IMETHOD CreateMessageFromMsgDBHdr(nsIMsgDBHdr *msgHdr, nsIMessage **message);
NS_IMETHOD CreateMessageFromMsgDBHdr(nsIMsgDBHdr *msgHdr, nsIMessage
**message);
NS_IMETHOD GetNewMessages();
// nsIImapMailFolderSink methods
// Tell mail master about a discovered imap mailbox