Open Bug 128581 Opened 24 years ago Updated 1 month ago

IMAP Filters filter unread (UNSEEN), should filter only new (RECENT) mails. Message gets filtered again if moved to Inbox

Categories

(MailNews Core :: Filters, defect)

defect

Tracking

(Not tracked)

People

(Reporter: BenB, Unassigned)

References

Details

(Whiteboard: [filterfail])

Attachments

(1 obsolete file)

Environment: - IMAP account on UW-IMAP server - Mozilla build from Feb 1. Reproduction: 1. Set up a (client-side) filter to move certain mails to another folder 2. Send yourself a mail which triggers the filter 3. Go to the folder where is has been sorted and move it back to the INBOX. Do not open it. 4. Open INBOX to read the mail. 5. Repeat from 3. Actual result: The mail gets filtered again. It won't stay in INBOX. Expected result: Mails once filtered, seen or touched won't get filteres again. Additional Comments: - Try the same, but this time uncheck the read flag of the filtered in the folder where it's sorted to. Now, the mail will stay in INBOX. This means that the filtering depends on the "read" flag. - ... but it shouldn't. IMAP has a Special SEEN flag, IIRC, which says, if the user ever opened the folder with the mail, i.e. saw the mail('s header line). This seems to be the more correct flag to use.
I have also been bitten by this because sometimes I go back to 4x because I am working in some other profile. fix upcoming.
Status: NEW → ASSIGNED
Attached patch proposed fix (obsolete) — — Splinter Review
The fix is to allow filtering on read/seen headers also.
Cavin, Dave, looking for r & sr, thx.
unless I'm very much mistaken, your change will make it so we filter on all messages, and Ben wants us to just filter on /recent messages, so you're doing the opposite of what Ben wants.
Let me file a separate bug, I can't make out what ben really wants. My patch will filter all hdrs that are downloaded in Inbox (if they are not deleted).
I discussed this with david. Ben and I both are at odds. This is not the right way to fix my problem. A better solution is to use manual filters (when we have implemented them :( ).
bienvenu, I am always confused about the names of the IMAP flags. You comment 4 suggests that I misused them here, but I think you know what I mean. Can you correct them, please?
Ben, you're suggesting using the /RECENT flag - I've updated the summary.
Summary: Filters filter NEW, not UNSEEN mails → IMAP Filters filter /RECENT, not UNSEEN mails
mass re-assign.
Assignee: naving → sspitzer
Status: ASSIGNED → NEW
Product: MailNews → Core
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
QA Contact: laurel → filters
Product: Core → MailNews Core
Whiteboard: [has draft patch]
Comment on attachment 82860 [details] [diff] [review] proposed fix This patch seems wrong according to the comments.
Attachment #82860 - Attachment is obsolete: true
One disadvantage of my solution: If another IMAP mail client has seen the mail, they won't get filtered anymore. Maybe David would be able to think of a solution. It's not urgent, though, obviously.
(I do believe that the observed behavior is a bug, though.)
Whiteboard: [has draft patch]
Maybe a solution is to stick a custom IMAP flag (not MIME header) on it, like "is-filtered".
Please if anything as done with this make it as an option as I personally don't see this is a bug... I had a bunch of mail get filter from folders to the spam folder on another computer so I unmarked them as SPAM and my main computer filtered them back into the proper folders.
George, yes, I (the reporter) agree with you. The summary was wrong.
Summary: IMAP Filters filter /RECENT, not UNSEEN mails → IMAP Filters filter UNSEEN (unread), should filter only RECENT (new) mails
Summary: IMAP Filters filter UNSEEN (unread), should filter only RECENT (new) mails → IMAP Filters filter unread (UNSEEN), should filter only new (RECENT) mails
See Also: → 1116228
Severity: normal → S3
Summary: IMAP Filters filter unread (UNSEEN), should filter only new (RECENT) mails → IMAP Filters filter unread (UNSEEN), should filter only new (RECENT) mails. Message gets filtered again if moved to Inbox
Whiteboard: [filterfail]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: