Closed Bug 530551 Opened 15 years ago Closed 15 years ago

Very old messages appear as unseen with IMAP (CONDSTORE is supported)

Categories

(MailNews Core :: Database, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 517461

People

(Reporter: david.jonas, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091121 Thunderbird/3.0

Thunderbird seems to forget that the user has read old messages.

Example: IMAP folder with 548 messages (501 conversations) ranging in date from 2001 to present unexpectedly shows messages from 2003 as unread (bold, "View: Unread" shows them). When the same folder is viewed with webmail client (tested with hasty mail, horde, group office) the messages appear as seen.

Reproducible: Couldn't Reproduce




This appears to happen on multiple platforms (Mac and linux tested) and has been occurring since I started using Thunderbird, at very least since 3.0b1. Recently mentioned on the Dovecot users list which brought it to my attention as happening to other people besides me: http://www.dovecot.org/list/dovecot/2009-November/044575.html Perhaps it is related to dovecot in some way, but other clients don't seem to be a problem (as noted above).
As mentioned on the dovecot mailing list by Thomas Harold, I closed TB, deleted the msf file for the folder with the unseen old messages, started TB and the messages were listed as expected (seen).
Can't confirm a fix, but I can confirm this behavior as of 3.0b4.  I see this daily on an account with over 100 mailboxes and a few GB of email across them.  Messages just seem to randomly become "unseen" in a number of folders.

Reindexing regularly is not much of an option since it renders TB unusable for an hour or so.
Component: Folder and Message Lists → Database
Product: Thunderbird → MailNews Core
QA Contact: folders-message-lists → database
Perhaps its related to our use of condstore.  You could try turning off condstore in the client by toggling mail.server.default.use_condstore in the config editor.
I've toggled use_condstore to false. At this time I have no messages showing as unseen that shouldn't be. I'll watch for a difference in behaviour.
What's odd about that is that condstore makes it so we don't even query the flags for the old messages, in general, so I don't know why we'd think they were unread, unless the mailnews backend code didn't realize that the imap protocol code was using condstore on that particular folder (though we certainly keep track of that fact)
Adding CONDSTORE to bug summary for ease of search.

FYI.
CONDSTORE was supported by bug 436151. 
> http://groups.google.com/group/mozilla.dev.apps.thunderbird/browse_thread/thread/08d88880d22fe73f
Tb confuses relative number with UID?
Summary: Very old messages appear as unseen with IMAP → Very old messages appear as unseen with IMAP (CONDSTORE is supported)
CONDSTORE : http://tools.ietf.org/html/rfc4551
Issue in modseq handling?
I disabled condstore as suggested in comment 3 on 11/25 for all my running copies of TB3. I have not had this error occur since. I am now going to re-enable condstore to see if the problem returns.
Duping because patch is proposed to bug 517461. If wrong, re-open with attaching IMAP log, please.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.