Courier::Filter::Util - Utility class used by the Courier::Filter framework
use Courier::Filter::Util qw( ipv4_address_pattern ipv6_address_pattern loopback_address_pattern ); $message->remote_host =~ / ^ (?: ::ffff: )? $(\ipv4_address_pattern} $ /x; $message->remote_host =~ / ^ $(\ipv6_address_pattern} $ /x; $message->remote_host =~ / ^ ${\loopback_address_pattern} $ /x;
Courier::Filter::Util is Courier::Filter's utility class.
The following constants are provided:
A regular expression matching an IPv4 address in "dotted decimal" notation.
A regular expression matching an IPv6 address in full RFC 4291 syntax.
A regular expression matching an IPv4 or IPv6 loopback address (127.n.n.n, ::ffff:127.n.n.n.n, ::1).
127.n.n.n
::ffff:127.n.n.n.n
::1
Courier::Filter.
For AVAILABILITY, SUPPORT, and LICENSE information, see Courier::Filter::Overview.
Julian Mehnle <julian@mehnle.net>
To install Courier::Filter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Courier::Filter
CPAN shell
perl -MCPAN -e shell install Courier::Filter
For more information on module installation, please visit the detailed CPAN module installation guide.