r=naving, sr=sspitzer 123427 remove offline store when news folder unsubscribed

This commit is contained in:
bienvenu%netscape.com 2002-02-06 03:59:01 +00:00
parent 037d0a9b40
commit 63f4d5d763
2 changed files with 5 additions and 4 deletions

View File

@ -129,7 +129,6 @@ nsMsgNewsFolder::nsMsgNewsFolder(void) : nsMsgLineBuffer(nsnull, PR_FALSE),
SetLookingForCRLF(PR_FALSE);
}
mMessages = nsnull;
// NS_INIT_REFCNT(); done by superclass
}
@ -611,6 +610,9 @@ NS_IMETHODIMP nsMsgNewsFolder::Delete()
rv = pathSpec->GetFileSpec(&path);
if (NS_FAILED(rv)) return rv;
// delete local store, if it exists
if (path.Exists())
path.Delete(PR_FALSE);
// Remove summary file.
nsNewsSummarySpec summarySpec(path);
summarySpec.Delete(PR_FALSE);

View File

@ -141,9 +141,8 @@ protected:
protected:
PRUint32 mExpungedBytes;
PRBool mGettingNews;
PRBool mInitialized;
nsISupportsArray *mMessages;
PRBool mGettingNews;
PRBool mInitialized;
nsCString mOptionLines;
nsCString mUnsubscribedNewsgroupLines;
PRBool m_downloadMessageForOfflineUse;