procmail
[Top] [All Lists]

Re: total number of messages with mailstat

1997-05-14 11:33:00
On Wed, 14 May 1997, Burnt Norton wrote:

Has anyone hacked `mailstat' to calculate and display the total number of
messages received by procmail in a given logfile?

goblin$ mailstat -k Mail/procmail.log
 
  Total  Number Folder
  -----  ------ ------
   2133       1 /home/bnorton/incoming/lists/ufo-l
  17621       7 /home/bnorton/incoming/lists/amanda
  10445       4 /usr/mail/bnorton

This is the default output.  I'm looking for a change that will add the 
values in the "Number" column to give a grand total of messages.

There is a perl script called procparse that might suit your needs.  Gives
ouput like this:

 10:19am netcom23:~>  procparse .procmail/log

        procmail log summary
        --------------------

From: Wed May 14  9:12:37 US/Arizona 1997
To:   Wed May 14 10:07:35 US/Arizona 1997

Messages     %    Size (K)     %     Mailbox
--------   ----   --------   ----    -------
       5  100.0        5.8  100.0    /u9/wotan/.mailbox/inbox
--------   ----   --------   ----    -------
       5  100.0        5.8  100.0    1



-- 
Jesus Saves,
Moses Invests,
But only Buddha pays Dividends.

<Prev in Thread] Current Thread [Next in Thread>