Filter expression processing order

Technical support and discussion of Newsbin Version 6 series.

Filter expression processing order

Postby malhusky » Wed Feb 28, 2018 7:08 pm

Is there a way to set the regular expression processing order in a filter? I'd like to have both Accept and Reject expressions, but in some cases both could be true so I'd like one to have priority over the other. I suppose I could combine the expressions but that would be more complicated and not as clear or easy to modify.
malhusky
Occasional Contributor
Occasional Contributor
 
Posts: 49
Joined: Sat Apr 28, 2012 1:01 am

Registered Newsbin User since: 12/13/10

Re: Filter expression processing order

Postby Quade » Thu Mar 01, 2018 10:13 am

Currently it process reject first and then accept filters. So if any reject filters reject, the whole thing is tossed out.

The accept and reject filter entries are "OR"ed together into a single RE. So, you end up with one reject RE and then one accept RE which is applied to the subject or poster in sequence.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Filter expression processing order

Postby malhusky » Thu Mar 01, 2018 6:58 pm

That's exactly the way I would hope it worked. But I noticed that the filter seems to put the Accept expressions first and the Reject's last. Is that just for display purposes?
malhusky
Occasional Contributor
Occasional Contributor
 
Posts: 49
Joined: Sat Apr 28, 2012 1:01 am

Registered Newsbin User since: 12/13/10

Re: Filter expression processing order

Postby Quade » Thu Mar 01, 2018 8:47 pm

The order in the actual listing doesn't matter.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 33 guests

cron