Closed Bug 85588 Opened 23 years ago Closed 23 years ago

Unread mail status is incorrectly set to Read when mail filtered to local folder

Categories

(MailNews Core :: Database, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: jozef.chocholacek, Assigned: Bienvenu)

References

Details

Attachments

(2 files)

When messages are moved (using filters) from IMAP Inbox to the apropriate
subfolders in "Local Folders", some of them are marked Read although they arent
read (e.g. during night when my Mozilla is running and retrieving new messages,
but I am sleeping home so I cannot read the messages :).
Reporter what build are you using? Have you tried 0.9.2 and a new profile does
that fix the problem?
Now I am on 0.9.2 and this bug is still there. Build ID is 2001070209.
I found out that it is the last received message in the folder, e.g. I have set
to connect to IMAP every 15 min. and receive new messages and sort them into
local folders - and when there is e.g. 5 new messages, then the newest message
(with highest "Date" field) is marked as read.
Do you want my configuration?
yes please
Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
changing summary; Navin, do you have a bug like this?
Status: NEW → ASSIGNED
Summary: Unread mail status is incorrectly set to Read → Unread mail status is incorrectly set to Read when mail filtered to local folder
No
*** Bug 94604 has been marked as a duplicate of this bug. ***
This is also true when copying multiple unread messages from imap to pop - the
last message gets marked read. So the problem is in the msg copy code, not the
filter code.
OS: Linux → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → mozilla0.9.4
OK, the problem here is that nsMsgLocalMailFolder::CopyMessagesTo calls
StartMessage() for the first local message. However, we don't need this if the
src folder is imap because IMAP will do a StartMessage for each message. The fix
will probably be to check if the src folder is imap, unfortunately, or some
similar hack.
David I was going to bump this to .9.5 per the triage meeting today but it
sounds like you may already have a fix. If you do, go ahead & check it in
otherwise feel free to push this off to .9.5.
bumping to .9.5 per my earlier comment.
Target Milestone: mozilla0.9.4 → mozilla0.9.5
QA Contact: esther → laurel
Attached patch proposed fixSplinter Review
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
OK using nov15 commercial trunk build: win98, mac OS X, linux rh6.2
OK for filtering (multiple messages arriving at a time) IMAP --> local, OK for
copying multiple messages IMAP --> local.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: