port rss fix from trunk, for creating dbs

git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@158944 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com
2004-07-09 16:00:34 +00:00
parent c1a4647e11
commit cefd7bae05

View File

@@ -121,7 +121,7 @@ NS_IMETHODIMP nsMailDatabase::Open(nsIFileSpec *aFolderName, PRBool create, PRBo
}
// if the old summary doesn't exist, we're creating a new one.
if (!summarySpec.Exists() && create)
if ((!summarySpec.Exists() || !summarySpec.GetFileSize()) && create)
newFile = PR_TRUE;
mailDB = new nsMailDatabase();