procsum - procmail log summary
procsum [--today] [--nohead] procmail.log
procsum prints yesterday's entries in a procmail log--sort of a daily digest of a procmail log. With the --today option you get today's log entries. That's all it does.
procsum prints out a brief header, which can be suppressed with the --nohead option.
I got tired of logging into my server to read procmail logs after tweaking my spam rules, so I wrote procsum to grok yesterday's procmail log for me and send me an email of the summary.
Copy procsum to anywhere you want it on your server and make sure it's executable (chmod 555 procsum).
To run procsum from cron, you might try something like this:
10 4 * * * /usr/local/sbin/procsum $HOME/procmail.log | mail -s "log summary" joe
This will send the log summary to user 'joe'.
Scott Wiersdorf, <scott@perlcode.org>
Copyright (c) 2007 Scott Wiersdorf. All rights reserved.
procsum is released under the Perl Artistic License. See perlartistic(1).
procmail(1)