Closed Bug 254947 Opened 20 years ago Closed 19 years ago

MailNews should rebuild corrupted/outdated Inbox summary .msf file before fetching new mail

Categories

(MailNews Core :: Database, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: relf, Assigned: Bienvenu)

Details

Attachments

(1 file)

Linux build 2004080905

This bug is consequence of bug 253804. If Inbox summary file is corrupted or
outdated, then starting MailNews with turned on "Check for new messages at
startup" and "Automatically download new messages" options causes the following:
1. New mails are fetched.
2. A new mail indication appears, but MailNews does not show exact number of new
mails in the Inbox folder.
3. Junk mails are marked as 'Junk' but not filtered to the Junk folder. I assume
all other filters do not work either.
I'll check into it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I tried this with a brand new trunk build. I "touched" Inbox so the .msf file
would be out of date, started up, and saw the Inbox.msf summary file get
regenerated, then new mail was retrieved, and my junk mail was moved to the junk
folder.

Are those the same steps you performed? Or did you try deleting your Inbox.msf file?
I think that my Inbox summary file was really corrupted after a system crash. I
did not delete it. But maybe a deleted summary file will allow to reproduce the bug?
if your system crashed, it's more likely that the summary file was just out of
date with the local mail folder, not that the summary file was corrupted.
This fixes a related problem I discovered, which may or may not be what you saw
(probably not) - if you try to get new mail after we've opened the Inbox.msf
file, but the Inbox.msf file is out of date, we were failing to get new mail -
this is a regression due to the global inbox stuff, I believe...

I'll keep trying to reproduce the problem you saw.
Attachment #155831 - Flags: superreview?(mscott)
Attachment #155831 - Flags: superreview?(mscott) → superreview+
Attachment #155831 - Flags: approval1.8a3?
Comment on attachment 155831 [details] [diff] [review]
fix for getting new mail when Inbox.msf is out of date

r/a=sspitzer
Attachment #155831 - Flags: review+
Attachment #155831 - Flags: approval1.8a3?
Attachment #155831 - Flags: approval1.8a3+
last patch checked into trunk and 1.0 branch - still trying to see if I can
reproduce other problems. I tried corrupting an Inbox.msf file and it was
regenerated correctly, before mail was fetched.
Ironically, my power went out last night and when I launched after that, I did
see similar symptoms, especially junk mail not getting filtered. Not only was
the Inbox.msf out of date, and regenerated, but the panacea.dat was invalid as
well, which might be involved here.
Maybe the fix in bug 221797 was not enough for this case...
I've just got the same problem with Mozilla OS/2 build 2004082208.
OS: Linux → All
Hardware: PC → All
FWIW, I'm also seeing a similar problem in OS/2 (build 2004081920). If I have a
system crash, on restarting Mozilla, the Inbox.msf file in "Local Folders" gets
zeroed out and won't rebuild.

A workaround seems to be to close Mozilla, delete Inbox.msf in Local Folders,
and rename the Inbox file to something else (InboxOld, for instance). Opening
Mozilla mail and choosing another, undamaged folder before chosing the "new"
InboxOld folder will result in a reindex. Then I can close Mozilla, rename
InboxOld and InboxOld.msf to Inbox and Inbox.msf and everything is hunky-dory
again. 

But I haven't found a step in there that I can skip to get it to work....
I see this problem with empty msf files (zero-size), not only for the Inbox, but
for any folder where I automatically filter messages to.

As such, closing TB, deleting the msf file and restarting TB solves the problem.
The folder files themselves are not corrupted in my case.

Compacting the folder with the empty msf file does not help. TB does not
regenerate the msf file, but rather keeps it empty. This means that the unread
count is not shown and the space and N keys don't work.
Can someone knowledgeable take a look at 265930 and see if it's related to this?
I've fixed several issues in this area today and yesterday. Can you try
tomorrow's nightly .8/.9 build or trunk build?
Product: MailNews → Core
This is now working fine for me with Tb 1.0. Is anyone still affected?
marking fixed. no response...
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: