Filter: not contains(subject, 'value1') or contains(subject, 'value2')
I was expecting to have a 'not' in front of both contains() in the output.
It looks like if I move the negate() to the end of the 'value2' line it has the behaviour I expected and if I add additional contains with negates It looks like I would need to alternate the location of the negate() for each line. Is there a better way to order these to have the behaviour I expected?
I am trying to build a query to exclude mail matching multiple subjects and am not clear on the behaviour here.
If I add a query like this:
The query gets built as:
I was expecting to have a 'not' in front of both contains() in the output.
It looks like if I move the negate() to the end of the 'value2' line it has the behaviour I expected and if I add additional contains with negates It looks like I would need to alternate the location of the negate() for each line. Is there a better way to order these to have the behaviour I expected?