next part of fix for #40357 - make news and local mail not support mail filters

r=putterman
This commit is contained in:
alecf%netscape.com 2000-08-26 06:09:48 +00:00
Родитель 91df637ebf
Коммит 7f5525f155
4 изменённых файлов: 18 добавлений и 0 удалений

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

@ -255,3 +255,12 @@ NS_IMETHODIMP nsNoIncomingServer::GetNewMail(nsIMsgWindow *aMsgWindow, nsIUrlLis
// do nothing, there is no new mail for this incoming server, ever.
return NS_OK;
}
// the "none" server does not support filters, because
// it doesn't support incoming messages!
NS_IMETHODIMP
nsNoIncomingServer::GetFilterList(nsIMsgFilterList **aResult)
{
*aResult = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}

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

@ -44,6 +44,7 @@ public:
virtual ~nsNoIncomingServer();
NS_IMETHOD GetLocalStoreType(char * *type);
NS_IMETHOD GetFilterList(nsIMsgFilterList **aResult);
};

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

@ -574,6 +574,13 @@ nsNntpIncomingServer::PerformExpand(nsIMsgWindow *aMsgWindow)
return NS_OK;
}
// remove this when news supports filters
NS_IMETHODIMP
nsNntpIncomingServer::GetFilterList(nsIMsgFilterList **aResult)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsNntpIncomingServer::GetNumGroupsNeedingCounts(PRInt32 *aNumGroupsNeedingCounts)
{

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

@ -69,6 +69,7 @@ public:
NS_IMETHOD CloseCachedConnections();
NS_IMETHOD PerformBiff();
NS_IMETHOD PerformExpand(nsIMsgWindow *aMsgWindow);
NS_IMETHOD GetFilterList(nsIMsgFilterList **aResult);
// for nsMsgLineBuffer
virtual PRInt32 HandleLine(char *line, PRUint32 line_size);