OK... here I go:

header _LOCAL_RCVD_TRUSTED_SASKNET Received =~ /.{0-20}\.sasknet\.sk\.ca/i
header _LOCAL_RCVD_TRUSTED_TELUS Received =~
/priv-.{0-20}\.telusplanet\.net/i
meta LOCAL_RCVD_TRUSTED (_LOCAL_RCVD_TRUSTED_SASKNET ||
_LOCAL_RCVD_TRUSTED_TELUS)
score LOCAL_RCVD_TRUSTED -10.0

Thanks for the link - I will check it out.

Dan

> -----Original Message-----
> From: Matt Kettler [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 9:43 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [SAtalk] Whitelist Issue
>
>
>
> No, . is the wildcard character. ? isn't a wildcard at all.
>
> The {0,20} is actually a repeat-count limit.
>
> .{0,20} means "match as few as 0 or as many as 20 wildcard characters"
>
> z{1,20} would match a string of at least 1, and as many as 20 z's
>
> ? is also a repeat count limit.. It is the same as {0,1}
>
> so
> .? means "match any character, 0 or 1 times". It's used to do things like
> planes? which will match "plane" or "planes".
>
> ? is also used inside OR operations to prevent backtracing, so
> (?: x| y) is
> an or operation, matching x or y with no regex backtracing.. it's kind of
> messy.
>
>
> >Is there a FAQ on the format for writing rules?  Are these just
> regex?  It's
> >about time to buy a book on this.
>
> They are perl regex, an extension of plain regex and I've got a howto on
> rule writing. It also has a list of links in it to pages on regex syntax.
>
> http://mywebpages.comcast.net/mkettler/sa/SA-rules-howto.txt
>
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to