Closed Bug 87893 Opened 24 years ago Closed 24 years ago

Filters are not executed in order when action is Set Priority

Categories

(MailNews Core :: Filters, defect)

x86
Windows 98
defect
Not set
major

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: hwaara, Assigned: naving)

Details

Apparently, the whole behaviour is broken in that having a filter above another in the filter-list should make us check that before all others, when using set priority as action. Real world example: name="first" enabled="yes" type="1" action="Change priority" actionValue="Highest" condition="OR (subject,contains,ris)" name="second" enabled="yes" type="1" action="Change priority" actionValue="Lowest" condition="OR (subject,contains,ris)" Here we have two filters with the same criterium - if the subject contains "ris" , do something. Since the filter "first" is before "second", the message's priority should be set to Highest, right? It's not. When I tried, the priority became Lowest.
Might become dataloss if you have an advanced filtering system where one filter takes care of something - and you have an underlying filter that takes care of the unfiltered stuff (maybe delete it!).
That's because filters continue to evaluate until a move (move to folder or delete) is done. So after the match for the first filter, it continues to be evaluated or "drops through" to the second filter... there it is set to Lowest priority. This is intended behavior by current (6.0 and 6.1) design.
Why would I want the filter after the first one to match?? I don't understand how this can be intended behaviour.
If this really is intended behaviour, I really think we should fix it. Sspitzer, Bienvenu - comments?
Related/historical info in (verified, 6.0) bug 23590, including this excerpted comment from David Bienvenu 2000-01-10 17:08 ------- "... Now, due to incredibly heavy popular demand, we only stop evaluating filters if a filter actually performs a move. Otherwise, we will keep evaluating filters." According to your scenario example, hwaara, this is an invalid point respecitve to the current design... marking worksforme (since invalid always gets everyone uptight).
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
At least give me the fair right to question this decision before you just slam a invalid/worksforme in my face.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Come down off your pedestal.
Huh? In what way is it wrong of me to think that I have the right to discuss this behaviour before you close the bug?
It is not unreasonable for hwaara to question this design. This is a case where the actual behavior deviates from the expected behavior (the reporter's expected behavior) and that is how I define a type of bug. It may be a bug which will not be fixed but there are now two people on record who do not like the current behavior and I think that warrants a reopening of the design discussion.
It's a perfectly valid resolution, and I'm marking it wontfix. People open bugs when execution doesn't stop. People open bugs when execution does stop. It's a no win solution for me to leave them all open. In the future, the solution will be to allow the user to specify whether execution should stop or not, and that is covered in another bug, which I will go look up when I get a chance.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → WONTFIX
see bug 30081 - it covers the actual issue.
I agree. Fixing bug 30081 is the way to satisfy everyone. I will try to do that then.
marking verified -- old invalid or wontfix resolutions
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.