Thank you for your ideas on the COUNT program, which will help with my
own book keeping:
# Get a regional lock
LOCKFILE=.count$LOCKEXT
INCLUDERC=.count
:0
* $ ${COUNT:-0}^0
* 1^0
{ }
COUNT=$=
:0ci # 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
A quick test of it seem to be ok, and if there any minor problems
I am sure I can fix them now. Good work!
Best wishes,
Kalvis
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail