[Mimedefang] RE: What to do w/ SPAM? (ip address regex)

Clayton, Nik [IT] nik.clayton at citigroup.com
Tue Sep 24 04:30:01 EDT 2002


> Hovever, it might be worth adding some Perl functions which check if
> an address is within a network.  For example:
> 
>    if (address_in_network($RelayAddr, "192.168.128.0/25")) {
> 	#...
>    }
> 
> could be a useful thing to do.  (Actually, I bet there's a CPAN module
> out there that already does this. :-))

NetAddr::IP.

N
-- 
1        1         2         3         4         5         6         7    7
         0         0         0         0         0         0         0    5
  -- The 75 column-ometer
                                             Contributing to the heat death
Global Messaging, 120 Cheapside, x83331      of the universe since 1973.



More information about the MIMEDefang mailing list