ACL-Regex
view release on metacpan or search on metacpan
lib/ACL/Regex.pm view on Meta::CPAN
parse_acl_from_file( { Filename => "acl.reject.txt" } )
=item B<match>
This method takes an action as a parameter, and returns a triplet
containing the return code, matched regex, and any comment associated
with the regex.
=back
=head2 INPUT FILES
=head3 ACL REGEX FILE
An example of ain input ACL file can be found in the I<t> folder of this project, but it simply
comprises of rows that look like:
# Don't allow domain admins to delete mailboxes on weekends or mondays
/action=[mac-delete-mailbox] account=[.*@domain.net.adm] group=[domain-admin] dow=[sat|sun|mon]/ Domain admins can only delete mailboxes during the week
# Reject mail from brazil
/account=[.*@example.net] ip=[200..*] group=[user] action=[send-mail]/ No mail to be sent from Brazil!
( run in 0.315 second using v1.01-cache-2.11-cpan-4e96b696675 )