Page 1 of 1

Filter processing questions

Posted: Wed Mar 05, 2003 6:20 pm
by Tipperton
Question: How are multi-line filters processed?

Example

Messages are new all select
Messages are partial selected extract

Does this filter produce two sweeps of the database (one for each line) or are each of the lines checked against the current message before moving on the the next message?

Question: What happens here?

Subject contains foo all select
Subject contains bar all select

Will messages containing bar be the only ones selected or will messages containing foo also be selected.

Subject contains foo all ban
Subject contains bar all ban

Will messages containing bar be the only ones banned or will messages containing foo also be banned.

Thanks!

Posted: Wed Mar 05, 2003 8:18 pm
by alex
there are no multiple sweeps, every header is checked against the filter once.

the best way to see how filters work is to invoke edit menu->message filter and enter the rules one by one. when you press 'select' you'll actually see matched messages selected, so no reason to speculate how it would work if you can easily see it in action.

in the first example you'll see new partial messages (you can achieve the same by messages are new all extract, messages are partial all extract - using the approach above).

in the second example the first line will be ignored.

in the third example headers containing foo or bar will be hidden (if in kill filters - deleted).