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

Ashley M. Kirchner ashley at pcraft.com
Mon Sep 23 16:03:00 EDT 2002


"David F. Skoll" wrote:

> 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. :-))

    This would be usefull, ya!

--
W | I haven't lost my mind; it's backed up on tape somewhere.
  +--------------------------------------------------------------------
  Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.






More information about the MIMEDefang mailing list