On Mon, Aug 15, 2005 at 04:20:38PM -0500, Carl Wilhelm Soderstrom wrote: > > I keep telling people that I get about 500 mail messages a day; but I'd > really like some hard figures (maybe even ones I can graph). the ideal would > be to do this without installing any system-wide software on the server; so > I'm thinking there's got to be a pretty trivial way to do a simple counter > in procmail. > > even something as simple as: > echo 1 >> mailcounter-`date +%F` > in a procmail recipe would be easy to reckon up by running 'wc -l' on the > resulting file, and would be adequate for my purposes. > > some quick experiments were not successful with this; but that's because I'm > not a procmail guru. :) > > so has anyone done anything like this? > or do you have an alternate method? I just use the mailstat script that comes with procmail. It reads the procmail log and gives info on number of messages to each mail folder. To get daily reports you could just put it in a cron job and have cron mail you the results. -- Jim Crumley |Twin Cities Linux Users Group Mailing List (TCLUG) Ruthless Debian Zealot |http://www.mn-linux.org/ Never laugh at live dragons |