Here is a final working verison of COUNT. There was one error that mean
that COUNT was reset to 0 after it reached 100. The W was missing on the
line
:0ciW # whenever the count is a multiple of 100, zap the accumulated
Thank you and best wishes,
Kalvis
=====================================================
Working script
=====================================================
# Get a regional lock
LOCKFILE=.count$LOCKEXT
INCLUDERC=.count
:0
* $ ${COUNT:-0}^0
* 1^0
{ }
COUNT=$=
:0ciW # whenever the count is a multiple of 100, zap the accumulated
# assignments from .count
* COUNT ?? 00$
|rm -f .count
# Write new count to .count by temporarily redirecting log messages
oldLOG=LOGFILE
LOGFILE=.count
LOG="COUNT=$COUNT
"
LOGFILE=$oldLOG
# Done, so regional lock can go away
LOCKFILE
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail