Mailwatch can be installed as an alias to a mailing list on a local system by using a piped alias, like this: mail-list: "!/usr/local/bin/mw.pl"
Or can be driven by Procmail. I used procmail for my setup, which requires a rule like this:
:c ^(To|Cc): .*elbows.* | /usr/local/bin/formail -a "Status: O" >> /u/shevett/Mail/elbows : ^(To|Cc): .*elbows.* | bin/mw.plNote that for this mail (mail from the 'elbows' mailing list), i already had a rule in place for it, so I needed to add the 'c' (continue) flag on the original rule, and add another rule.
Mailwatch can be invoked two ways. Without any command line arguments, it reads from STDIN, and adds whatever comes in over STDIN to the log file (defined by '$logfile' in the code). The second form tells mw to generate a summary report, and is invoked using an 's' on the command line
bin/mw.pl sThe code is ever-evolving. The latest version is here, and requires Perl5 to run.