Mail-Procmail
view release on metacpan or search on metacpan
lib/Mail/Procmail.pm view on Meta::CPAN
$ perl -MMail::Procmail -e 'pm_report()' syslog/pm_logs/*
=cut
sub pm_report {
my (%atts) = @_;
my $logfile = delete($atts{logfile});
local (@ARGV) = $logfile ? ($logfile) : @ARGV;
my %tally; # master array with data
my $max1 = 0; # max. delivery
my $max2 = 0; # max. delivery / rule
my $max3 = 0; # max length of rules
my $recs = 0; # records in file
my $msgs = 0; # messages
my $dlvr = 0; # deliveries
while ( <> ) {
( run in 0.576 second using v1.01-cache-2.11-cpan-49f99fa48dc )