On Sat, Jul 01, 2006 at 02:05:06PM +0200, Ruud H.G. van Tol wrote:
This is wrong:
$_6 = 19[2-9]|2[0-4][0-9]|25[0-5]
$_8 = [01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]
Well, gee, "wrong" there is a bit harsh. :-)
MYNAT18 = 192\.168\.$_6\.$_8
Yes, now it's wrong. But of course
MYNAT18 = 192\.168\.(${_6})\.(${_8})
is okay. Probably much cleaner to do it your way there, though.
Btw, with the leading underscore in a var name, one needs the
braces for it to work. Also, the var on the left of the '=', which
is about to have an assigment set, can't have the leading '$', I
don't think. You've apparently been playing with perl lately. :-)
Yup. I think the script author's original premise was that some IP
addresses could come in with leading zeros. I suppose some spammers'
could. I've never seen any real, automatically produced (by mail
servers) IP addresses with leading zeros in the dotted quads, though.
Have you?
I haven't.
Good.
But there are several ways to write an IP-number.
Yup, though not likely in mail headers.
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail