procmail
[Top] [All Lists]

Re: mailstat problem

2002-07-17 04:07:09
On Wed, 17 Jul 2002, Bob Holtzman wrote:

When I tried to run mailstat after downloading emails I got the
message:

"Most people don't type their own logfiles;  but, what do I care?"

I found this referenced in /usr/bin/mailstat

On a tip from a newsgroup I tried : "mailstat < Procmail/.procmail.log"
and got this result:

[holtzm(_at_)localhost holtzm]$ mailstat

  Total  Number Folder
  -----  ------ ------

Followed by the entire contents of the log. On my old RH6.0 this command
would show the number of _new_ emails delivered to each mailbox. This is
what I'm trying to achieve this time with no successs.
Any help would be appreciated. Thanks


        I do not know what do you mean _new_ but, I save the logs named
        by the date:

LOGFILE=/var/log/pm/$DATE

        And my crontab do:

awk '/^  Folder:/{F[$2]+=1};END{for(i in F) print i,F[i]}' /var/log/pm/$DATE |
sort +1n


        It lists the folders sorted by the number of entries.

Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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