with a match-all-but its probably better to do DUNNO anyway...
probably less costly on the CPU than an advanced regexp

and definately simpler

but for all of our reference if you do have a particular regexp that you
just want a 'match this except for that'
you can also do

/(?!(dontmatch1)(dontmatch2))(?=(match1)(match2))tailstring/ 


-----Original Message-----
From: Bill Landry [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 9:35 PM
To: [EMAIL PROTECTED]
Subject: [IMGate] Re: are we lazy as he says ?



Yep, DUNNO let's it pass that particular test, not whitelist/deliver the
message, but rather pass the message onto the remaining tests until it finds
either an OK or REJECT.

Bill
----- Original Message ----- 
From: "Tom Baker|Netsmith Inc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 13, 2003 7:21 PM
Subject: [IMGate] Re: are we lazy as he says ?



OK whitelists everything (skips rest of smtp restrictions).

Though the DUNNO may be more practical here.
Having a hell of a time doing the regexp

Thought I love the challenge

/pattern/ DUNNO
Man 5 access

Seems similar to OK in that the access map returns "clean"
But it moves on to the next restriction, whereas OK would skip reamining
restrictions.
( ok = whitelist from this point on, we got a match its good)


-----Original Message-----
From: Bill Landry [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 9:17 PM
To: [EMAIL PROTECTED]
Subject: [IMGate] Re: are we lazy as he says ?



Why not something simple like:

/(smtp)|(biz).*\.rr\.com/ OK
/.*\.rr.com/ 554 ACL Baker test

Bill

----- Original Message ----- 
From: "Len Conrad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 13, 2003 6:38 PM
Subject: [IMGate] Re: are we lazy as he says ?




>ok, I commented out mine and pasted in yours:
>
>#/(smtp.*|biz)\.rr.com/ DUNNO
>
>/(?!(smtp.*)|(biz))(?=(^cpe)|(^cm)|(dhc)).*\.rr\.com/ 554 ACL Baker
>test

ok, but rr.com's subscriber PTR's are all over the map. not starting only
with cpe, cm or dhc, but all kinds of weird stuff, no consistency at all.

So what we want is a regex to block all rr.com PTRs except those containing
"smtp" or "biz".  I tried this:

/(?!(smtp.*)|(biz)).*\.rr\.com/ 554 ACL Baker test

But it matches everything with rr.com.  help, Tom!

Len






Reply via email to