Re: OT: NFilter help



Doug Miller wrote:
In article <4cp8o9F17548fU1@xxxxxxxxxxxxxx>, "Bill Stock" <me7@xxxxxxxxxxx> wrote:
I've got my test filter set up as:

rec.woodworking flag:XPOST xref:*:*:*

Header looks like:

Xref: uni-berlin.de rec.woodworking:1274982

So this should not be flagged, but it is.

Yes, it should. You told it to. :-)

What am I doing wrong?

Trying to write regexps without understanding them fully, or not paying as much attention as you should. :-)

Asterisk means "match zero or more of the preceding character".

Thus, *:*:* means match zero or more of any character, followed by zero or more colons, followed by zero or more colons.

In other words, your filter will flag *anything* in the Xref: header, whether there are any colons present or not.

*:.*:.* is probably closer to what you want: zero or more of any character, followed by one colon, followed by zero or more of any character, followed by one colon, followed by zero or more of any character.

Or you could just download my filter file, instead of trying to write your own. (see my sig for details)


Doug,

How long does it take for the autoresponder? Sent the email hours ago - nothing.... Guess we all should be thankful for all these posts... It's forcing me to do what I should have done a long, long time ago. And thanks for the service Doug...


begin:vcard
fn:John Dykes
n:Dykes;John
note:Remove the animals to email me....
version:2.1
end:vcard