зеркало из https://github.com/mozilla/pjs.git
next part of fix for #40357 - make news and local mail not support mail filters
r=putterman
This commit is contained in:
Родитель
91df637ebf
Коммит
7f5525f155
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче