From ee39ebed49908304d1f039dfb275cc61728655e2 Mon Sep 17 00:00:00 2001 From: "naving%netscape.com" Date: Thu, 31 Jan 2002 22:23:42 +0000 Subject: [PATCH] 112927 sr=bienvenu. fix whitespace, we do lot more than alerting, we backup old rules.dat as rulesbackup.dat and create a new rules.dat and alert is thrown when receiving new mail/opening filters dialog. --- mailnews/base/search/src/nsMsgFilterService.cpp | 5 ++--- mailnews/imap/src/nsImapIncomingServer.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mailnews/base/search/src/nsMsgFilterService.cpp b/mailnews/base/search/src/nsMsgFilterService.cpp index fddf594068a3..1ed9906b660d 100644 --- a/mailnews/base/search/src/nsMsgFilterService.cpp +++ b/mailnews/base/search/src/nsMsgFilterService.cpp @@ -100,7 +100,7 @@ NS_IMETHODIMP nsMsgFilterService::OpenFilterList(nsIFileSpec *filterFile, nsIMsg } else { - NS_RELEASE(filterList); + NS_RELEASE(filterList); if (ret == NS_MSG_FILTER_PARSE_ERROR && aMsgWindow) { ret = BackUpFilterFile(filterFile, aMsgWindow); @@ -110,7 +110,6 @@ NS_IMETHODIMP nsMsgFilterService::OpenFilterList(nsIFileSpec *filterFile, nsIMsg return OpenFilterList(filterFile, rootFolder, aMsgWindow, resultFilterList); } } - return ret; } @@ -169,7 +168,7 @@ NS_IMETHODIMP nsMsgFilterService::SaveFilterList(nsIMsgFilterList *filterList, n } NS_IMETHODIMP nsMsgFilterService::CancelFilterList(nsIMsgFilterList *filterList) -{ +{ return NS_ERROR_NOT_IMPLEMENTED; } diff --git a/mailnews/imap/src/nsImapIncomingServer.cpp b/mailnews/imap/src/nsImapIncomingServer.cpp index e2263caeb800..48406a23f867 100644 --- a/mailnews/imap/src/nsImapIncomingServer.cpp +++ b/mailnews/imap/src/nsImapIncomingServer.cpp @@ -902,12 +902,11 @@ nsImapIncomingServer::PerformExpand(nsIMsgWindow *aMsgWindow) NS_IMETHODIMP nsImapIncomingServer::PerformBiff() { - nsresult rv; + nsresult rv; nsCOMPtr rootMsgFolder; rv = GetRootMsgFolder(getter_AddRefs(rootMsgFolder)); if(NS_SUCCEEDED(rv) && rootMsgFolder) - rv = rootMsgFolder->GetNewMessages(nsnull, nsnull); - + rv = rootMsgFolder->GetNewMessages(nsnull, nsnull); return rv; }