Open Bug 72114 Opened 23 years ago Updated 8 years ago

Inbox / sent folder has wrong total for number of messages - corrupt msf

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: selmer, Unassigned)

References

Details

Attachments

(1 file)

3/12 04 WinNT

My Inbox has exactly 10 messages in it.  In the lower right-hand corner, the
summary says "Unread: 0  Total: 21".
Exit, delete Inbox.msf, restart fixes the number.  There's some new corruption
going on...
mark fixed?
i'm experiencing the same problem w/ linux trunk build 20021016.  mailnews
insists that i have 24 unread messages.  i've also noticed this problem with the
latest mozilla 1.0 builds under win2k.

is there some kind of check that we can add to verify the count?  seems like
we're relying too much on cached knowledge of the inbox count.

fwiw: i think i've correlated this problem with viewing the same IMAP account
from two different machines at nearly the same time (possibly overlapping).
I also typically access my IMAP from multiple machines and they all biff for
mail once a minute.
I've just seen this but I noticed that the user had to views of in the inbox
open, deleting the inbox.msf did fix the problem but isn't that easy if you have
the C drive hidden from the user's view. Is there a bug logged on adding a
reindex option to the context menu?
Oops, I should have said this was on BuildID 2003022108 on Win2K Sp2
*** Bug 186650 has been marked as a duplicate of this bug. ***
*** Bug 143324 has been marked as a duplicate of this bug. ***
Tweaking summary to try and catch more dupes, Old summary "Inbox summary has
wrong number of messages"
Summary: Inbox summary has wrong number of messages → Inbox / sent folder has wrong total for number of messages - corrupt msf
As per comment 5 that might be bug 106246
One workaround I've used is to sort the list on the unread column, select all
unread messages, mark all messages read, mark the selected messages unread. 
That gets the count back in sync without leaving the client.
i experienced something similar several times. 


a week ago, after importing eudora mail, copying/moving them from their local 
folders to account folders (pop3) generated a bad new mail count. today i moved 
4 spam mails to the junk mail folder - generated a bad new mail count again.


so moving mails between folders seems to be buggy.


this is bad because deleting the msf file renders all mails as unread and "junk?
", and bug 194912 crashes mailnews for me when trying to mark the mails as "not 
junk" for a specific, big folder.


using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030309
*** Bug 192269 has been marked as a duplicate of this bug. ***
*** Bug 154076 has been marked as a duplicate of this bug. ***
FYI:

I've been seeing this (Win2K) for quite a while with my IMAP a/c (may actually
be 'forever' as I only migrrated from POP to IMAP a few months ago - didn't see
it for POP).  Every now and again, if I've kept stuff in my inbox the total
displayed gets erroneously larger.

I've been fixing it by wiping the .msf, but this trashes the config. for my
Inbox subfilders too.

I thought I'd guessed it to be when I have a large email (w/ attachment) in the
thing, but not sure what causes it.  I *do* have Outlook running at the same
time (for calendsar functionality), and it does know where my email is (not over
IMAP tho' - 'raw' Exchange) although I don't use it.

Happened twice today (1.4b).  Just this second, I clicked my Inbox & saw the
bottom one (happens to be ~1Mb) appear twice, but reported as "1KB".  Closed &
re-opened and can only see it once [think it had the right size] but the 'Total'
had incremented again.  ISTR seeing that happen before (multiple displays of an
email, possibly again large ones).
More: just happened again.  I'm beginning to suspect that message filters may
have something do do with it, as messages seem to appear in the Inbox briefly,
then get moved.  I think this is when [big?] items get cloned and the 'total'
gets corrupted.
Neil, so it's the total count that's wrong, not the unread count? It might have
to do with the message that comes in, especially if it has large inline
attachments, though I don't know how to reproduce this. Do you have the junk
mail plugin turned on and enabled to move junk mail to the junk folder? 

getting an imap protocol log when this happens might help:

http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap

I see this alot but I do access my imap folders from different computers at
different times which seems confuse mozilla's counting.
It would still be useful to get a protocol log on the client that had trouble
with the counts. Now, does this happen in mid-session? I.e., when you start
mozilla and  open the folder, the count is correct, but at some point during the
session, the count gets off? Presumably, another session is retrieving messages.
Does the other session have filters running that move messages from the INBOX?
I've seen this bug myself, but it's not easy to reproduce.
Status: NEW → ASSIGNED
When using IMAP Mozilla seems to assume that the current message count is
correct on a particular folder and doesn't recount when you move some more
messages into a folder. For example if folder foo has a count of 200 when you
exit mozilla, you then go to another location, start mozilla, log into email,
transfer 2 messages to the folder foo. Exit mozilla and go back to your original
location, start mozilla and log into email, transfer 2 more messages to the
folder foo. The message count we usually be at 202 not 204, sometimes if you go
into the folder foo the count corrects itself but not always. I don't have any
filters or junk set up.
Ian, we don't know the correct count until you open the folder - we keep a
pending count when we know you've moved messages into a folder and clear that
when you open the folder. We increment the counts for the new headers we
download, decrement the counts for the headers that have been deleted, etc.
Somewhere something's going wrong with that logic. My assumption was that the
problem occurs when headers are deleted from a folder by one client but the
other client doesn't know about it. Are you saying you can reproduce this
without deleting messages, but just by moving messages into folders?
I've seen it in folders I've moved messages too but I also see it in my INBOX
though whether it's caused by me moving messages out of it or deleting messages
from it is hard to tell. I tend to get over 100 messages a day, 50% of which I
file into other folders and I usually have 50-100 read emails sitting in my
INBOX which makes the message count errors harder to detect.
One of my users that I did have testing mozilla kept only 2 or 3 emails in his
INBOX and he was getting incorrect counts at least once a day. I'd have to check
how many emails he gets per day and what % he files.
Right, just seen it again under 1.4rc1;  it's when there's an email in the IMAP
inbox with a large attachment.  I *think* it happens when a junk mail turns up &
is auto-moved to IMAP/Junk.  Yes, it's the total that ends up too high (and the
email size then becomes corrupted to "1KB".

I'll see if I can force it to happen by sending myself junk, and if so, try to
get this IMAP log.
there was a bug that certain kind of attachments could cause this funky
behaviour but I haven't seen it in a long time. If you can find a reproducible
case, that would be great.
I am on 1.4rc1 (as of yesterday) and just started having this problem. Was on
earlier 1.4 release and never saw it happen. My INBOX shows 26 total but it is
actually empty. If I get a new message, read it (or not, doesn't matter) and
then Compact the folder, the new message gets duplicated and the counts
increment by 1. If I Compact again, the counts increment again but the Inbox
still shows only two messages (the original and the first duplicate). I can
continue to Compact and the counts continue to increment. I now have 5 unread
and 33 total but can only see 2 unread messages in the Inbox.

I exited mail, deleted the Inbox.msf file and restarted mail. The unread count
went down to 4, the total still shows 33 and the Inbox now shows only 1 unread
message.

This is really wierd.

Is there a way to reset the counts to zero?
Michael, is this an imap folder or a local folder? My guess is it's a local
folder, and your .msf file has the wrong values in it. You can regenerate it by
deleting INBOX.msf - as to why it got corrupted in the first place, I don't know.
* * * Additional Info * * *
I just found out something that affects my earlier comment.

I maintain my mail folder local directory in a different location than the
default personal folder. The Inbox.msf that I deleted was in the personal
folder. I still had one in my own directory. When I deleted that one, the inbox
finally reset itself.
Mozilla Thunderbird 0.1 (20030723) on Windows 2000:

I saw this behavior with the Junk folder, but decided to post my steps here,
rather than in a new bug...

I set her up like this (on a brand new installation/profile):

1) set up account for a POP mail.charter.net account 
2) checked "enable adaptive junk mail detection"
3) checked "Move incoming messages determined to be junk mail to: "Junk" folder on:"
4) checked "When I manually mark messages as Junk: Delete them
5) clicked "Get Mail", had 460 messages on server
6) as they were coming in, I was marking messages as junk or not junk, wherever
appropriate
7) when all messages were downloaded, the ones determined to be junk were
auto-moved to the Junk folder
8) I scanned through the Junk folder and then selected all and marked them as
junk, which moved them to the Trash folder
9) now there were 0 messages in the Junk folder, but it said there were 3
10) as new messages were downloaded from the server and auto-moved to the junk
folder, the number of messages reported increased correctly, but the total was wrong
11) closing/reopening thunderbird did not fix it, naturally

I've never seen this behavior before today. Additionally, before closing
thunderbird, I deleted all the messages sitting in the Junk folder, and the
total was misreported as 3. My Junk.msf file is 18KB, and I will attach it in
case there is something interesting in there...
I have this problem, using IMAP and with no .msf files on my system, so it's not
(just) corrupt msf file/s.  The only fix I can find is to delete and recreate
the mail account.
I'm using Moz 1.4 on XP. I do use Outlook occasionally to remove mail
attachments (bug 2920).
I think I have a related problem, some of my users are reporting that when they
select a new message the headers of the old message remain in the view pane but
the body pane is blank.

Selecting the next and previous messages all function properly.  Restarting
fixes the problem, the associated msf changes in size but a few kb after the
restart.  The number of messages may also be different after restart.
I have seen this on an IMAP account with no filters. In my case the total count
is 2, while there are five messages in the inbox (including one 'spurious'
message; see bug # 209501).

1.5rc2 Mac OS X. I have not seen this on earlier versions of Moz.
I'm usingusing Moz 1.6 (Win2k).
When I add the "total" to the columns in the right tree pane of Moz Email
module, the Folders that have no mail in them seem to have random (mostly high)
numbers in the total column.
When you select those folders, Moz updates the figures to be nought.
I would consider this as a minor glitch.
Product: Browser → Seamonkey
I am seeing a similar problem on my IMAP inbox.  Mozilla reports Total: 9, even
though I see only 4 messages in my inbox.

Normally, when I delete messages, I move them to my trash folder.  However, I
have occasionally read e-mail for this same account using Outlook Express.  In
those cases, I believe deleted messages were simply marked for deletion.  

Is it possible that some of those marked for deletion messages are still in my
inbox, adding to the total, but Mozilla is not displaying them?

Mozilla 1.4.3
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040927

Assignee: sspitzer → mail
Status: ASSIGNED → NEW
I have a similar problem, not with message counts, but with the size of the Inbox (and other files).  Though I empty the Inbox daily, the size of the Inbox file in my profile grows with every file that passes through.  I noticed it because I use a synch program on a home network and the Inbox file grew to be enormous although it was empty.  I am running on XP and Win2k. The Thunderbird version is 1.5.0.9 (20061207)
Yesterday Thunderbird began radically incrementing the number of messages (lower right hand corner) and also the number of unread messages reported doubled (but not the actual number of unread messages).  The total when I last was able to check was above 250,000, and growing fast!  This has resulted in the entire program crashing - I can no longer get into Thunderbird at all, and I have had to report this via my Firefox account.  How can I fix this if I can't get into Thunderbird?  I tried sending to the links above but both addresses bounced.
c1hoffman@bridgew.edu - just delete the Inbox.msf file from the server sub-directory your user profile dir. What version of TB are you running? I thought this was fixed in 2.0 beta 2...
Assignee: mail → nobody
QA Contact: esther → message-display
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: