Mail-SpamAssassin
view release on metacpan or search on metacpan
lib/Mail/SpamAssassin/Pyzor/Digest/Pieces.pm view on Meta::CPAN
=head2 @lines = splitlines( $TEXT )
Imitates C<str.splitlines()>. (cf. C<pydoc str>)
Returns a plain list in list context. Returns the number of
items to be returned in scalar context.
=cut
sub splitlines {
return split m<\r\n?|\n>, $_[0] if defined $_[0];
}
1;
spamd-apache2/lib/Mail/SpamAssassin/Spamd/Apache2/Config.pm view on Meta::CPAN
die "if you add 'none' to SAUsers, it's pointless to add anything else\n";
}
else {
delete $srv_cfg->{sa_users};
}
}
# create list of allowed networks
use APR::IpSubnet ();
for my $net (@{ $srv_cfg->{allowed_ips} }) {
my $ais = APR::IpSubnet->new($conf_pool, split m#/#, $net, 2)
or die "APR::IpSubnet->new($net) failed";
push @{ $srv_cfg->{allowed_networks} }, $ais;
}
my @cfg = (
'SetHandler modperl',
'PerlProcessConnectionHandler Mail::SpamAssassin::Spamd::Apache2',
'PerlPreConnectionHandler Mail::SpamAssassin::Spamd::Apache2::AclIP',
);
( run in 1.411 second using v1.01-cache-2.11-cpan-71847e10f99 )