Closed Bug 243832 Opened 20 years ago Closed 20 years ago

Mail filter does not mark message as read when it also deletes the message

Categories

(MailNews Core :: Networking: IMAP, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kbarnard, Assigned: Bienvenu)

References

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Build Identifier: version 0.6 (20040502)

When the delete message checkbox is checked the message is properly deleted, 
however if the mark as read checkbox is also checked the message is not marked 
prior to deletetion.

Reproducible: Always
Steps to Reproduce:
1.Setup a mail filter that deletes and marks as read
2.
3.

Actual Results:  
The message is deleted but not marked as read.

Expected Results:  
The message should be marked as read or the feature should not be selectable.
*** Bug 239995 has been marked as a duplicate of this bug. ***
Still present in Thunderbird v0.7 (20040616) WinXP
Status: UNCONFIRMED → NEW
Ever confirmed: true
Is this bug about IMAP mail, or POP3?  I'm assuming the former.
(In reply to comment #0)
> User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
> Build Identifier: version 0.6 (20040502)
> 
> When the delete message checkbox is checked the message is properly deleted, 
> however if the mark as read checkbox is also checked the message is not marked 
> prior to deletetion.
> 
> Reproducible: Always
> Steps to Reproduce:
> 1.Setup a mail filter that deletes and marks as read
> 2.
> 3.
> 
> Actual Results:  
> The message is deleted but not marked as read.
> 
> Expected Results:  
> The message should be marked as read or the feature should not be selectable.

(In reply to comment #3)
> Is this bug about IMAP mail, or POP3?  I'm assuming the former.

(In reply to comment #3)
> Is this bug about IMAP mail, or POP3?  I'm assuming the former.

I was using IMAP when I first observed the bug.
A somewhat fix I found:

Instead of "Delete" select "Move to folder" then select the Trash. It's not
perfect(Trash goes bold), but at least they're marked as read.
(In reply to comment #5)
> Instead of "Delete" select "Move to folder" then select the Trash. It's not
> perfect(Trash goes bold), but at least they're marked as read.

"Delete" *should* be the equivalent of "Move to: Trash" plus "Mark as Read."

The "Trash goes bold" is a combination of a superfluous styling rule in the 
theme's CSS (in Mozilla, Classic shows the symptom but Modern doesn't), and the 
symptom of bug 230805.
I saw this bug, or something very close, occur today on a POP account -- a 
message came in which was filtered with Delete; the Trash folder went bold 
without a count, as I expected from the known bug mentioned in comment 6.  
However, when I visited the Trash folder, that deleted message became UNread, 
and "(1)" appeared next to the Trash in the Folder pane.
I have a similar problem.  Using thunderbird 0.8 on Linux (built from source on
gentoo).  The filter is applied to an IMAP mailbox (INBOX), moves selected
messages into a local folder, and marks them as read.  Everything works except
that the message is not marked as read.  I suppose that the message is also
being deleted from the IMAP server as a side effect of the move -- it certainly
disappears from the IMAP INBOX.

Point of information: the folder being filed into is several layers deep in my
folder hierarchy -- e.g. "Local Folders/stats/2004/10/w1".  Also, my Local
Folders are not in the default location.
For IMAP, this is perhaps a dupe of bug 201917.
This happens for me on an IMAP mail server with Thunderbird 0.9 using Windoze 2000.
Attached patch proposed fixSplinter Review
we were not treating delete as a move (which it is). Also, we were assuming
that messages moved by filters are new/unread, which is not true...
Assignee: mscott → bienvenu
Status: NEW → ASSIGNED
Attachment #165569 - Flags: superreview?(mscott)
Attachment #165569 - Flags: superreview?(mscott) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
Component: General → Networking: IMAP
Product: Thunderbird → Core
Version: unspecified → 1.0 Branch
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: