Closed Bug 760022 Opened 14 years ago Closed 11 years ago

Status of read emails not set

Categories

(MailNews Core :: Database, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: didier.courtaud, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120420145725 Steps to reproduce: I use Thunderbird with local files on a Unix box ( using Unix mailspool ) All my emails appear normally and new ones are highlighted. Actual results: When I read new emails, these emails are no more highligted but I let them into my Inbox. I click on the "Compact" button to compact my Inbox and I close Thunderbird. When I reopen it, all the previously "new" emails are highlighted again as if they are really new ! Expected results: Of course they should not be highlighted. I looked at the Inbox file into a text editor ans see that effectively the "compact operation" has not set the "Status" flag for the read emails. It seems that it works correctly for emails older than a day but not for emails of the same day
Component: General → Database
Product: Thunderbird → MailNews Core
QA Contact: general → database
Can you tell what the value of X-Mozilla-Status is in the source of a message that should be marked read (not new)?
(In reply to :aceman from comment #1) > Can you tell what the value of X-Mozilla-Status is in the source of a > message that should be marked read (not new)? X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: but no : Status: RO
And after you compact this same message gets shown as New? Can you then see the value of X-Mozilla-Status ?
I made some additionnal tests : - If I do not compact the folder ( Inbox ) I read new emails ( highlighted ) and close Thunderbird without compacting I look at the mailbox and do not see any X-Mozilla-Status flags ? I reopen Thunderbird and see all the "previously new" emails highlighted - Now if I compact the folder before closing Thunderbird When I reopen Thunderbird, all the emails are there and NOT higlighted In the mailbox file they have the flags : X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 OK ! But in any case , asmail that I use with Thunderbird says : "there are new emails" ! That is because it relies on the Status flag. If I edit the mailbox and add by hand a line : Status: RO to all emails asmail works fine ans says : "There is no new email" So it would be nice if the compact operation that adds the X-Mozilla-Status flags can also add the Status flag !
I am not sure what "asmail" is and why would Tb add some "Status" header. I do not have such header if any of my messages (from POP3). Either it is some mail spool specific header or nonstandard.
You're using movemail to get messages into your inbox? It sounds like that's not adding x-mozilla-status headers. Compact does add x-mozilla-status headers if they're missing. Here's the code that should be adding x-mozilla-status headers for movemail: http://mxr.mozilla.org/comm-central/source/mailnews/local/src/nsMovemailService.cpp#469 it also sounds like the .msf file is getting rebuilt when you restart, which makes the lack of x-mozilla-status headers a bigger problem.
didier, are you using movemail?
Flags: needinfo?(didier.courtaud)
Whiteboard: [closeme 2015-02-15]
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(didier.courtaud)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2015-02-15]
You need to log in before you can comment on or make changes to this bug.