Solved: msgFilterRuleshad mixed "AND" and "OR" in Filters

User Help for Mozilla Thunderbird
Post Reply
User avatar
MacLingo
Posts: 85
Joined: January 2nd, 2008, 8:46 pm
Location: Berkeley, CA

Solved: msgFilterRuleshad mixed "AND" and "OR" in Filters

Post by MacLingo »

One of my filters wasn't working, so I looked at it in msgFilterRules.dat. It had rules mixed with "OR" and "AND" between them. The master filter condition was "Find Any", so I thought all should be "OR"s and changed them accordingly. It then worked correctly.

So how did I get them mixed. Does it mean that if I have picked "All Rules" that the ANDS are going in then, and if I switch to "Any Rule" the conjunction "OR" is used. It looks like that is how it works to me.

But I would expect that if I switched from one rule to another that all conjunctions should be changed to the appropriate one. Is this an error?

Thanks,
Mac
Last edited by MacLingo on March 3rd, 2017, 10:24 am, edited 1 time in total.
Mac Lingo
Berkeley, CA
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: "msgFilterRules.dat" had mixed "AND" and "OR" in Filters

Post by DanRaisch »

Moving to Thunderbird Support?
wsmwk
Posts: 2833
Joined: December 7th, 2004, 6:52 am
Contact:

Re: "msgFilterRules.dat" had mixed "AND" and "OR" in Filters

Post by wsmwk »

The odd are good that it was caused by the bug I reported a few months ago https://bugzilla.mozilla.org/show_bug.cgi?id=1312172 which will be fixed in version 52. But the fix does not repair already bad filter
Post Reply