Re: How to get a count of processed msgs into procmail.log

Harry Putnam <[email protected]>
Newsgroups gmane.mail.procmail
Organization Still searching...
Message-ID <[email protected]>
No answers to my query here so I went to comp.mail.sendmail 

Here is one possibility that I can verify does work for me.

From a poster on comp.mail.sendmail

,----
| From: Andrzej Adam Filip <[email protected]>
| Subject: Re: Logging a running count of processed mail [procmail]
| Newsgroups: comp.mail.sendmail
| Date: Tue, 19 Nov 2013 22:19:37 +0100 (23 hours, 28 minutes, 12 seconds ago)
| Message-ID: <[email protected]>
| 
| You may use perl with File::CounterFile module to get persistent
| counters. The module is provided by libfile-counterfile-perl module in
| Linux/Debian. 
| 
| Add the following line at begin of your procmail script. It may be
| safer to absolute path to counter file:
| 
| COUNT=`perl -MFile::CounterFile -e 'print
| File::CounterFile->new("./COUNTER")->inc'`
`----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.