On 16-Nov-2009, at 17:50, JW Simpson wrote:
john(_at_)system76-pc:~/LuKreme/tmp$ cat LuKreme.rc
NL="
"
LOGFILE=/dev/stderr
CUR_LIST=`/usr/bin/find Maildir/ -regex
'.*/cur/.*,'|/usr/bin/gawk -F/ '{print $2}'`
LISTS=`uniq <<< "$CUR_LIST"`
OK, that's an interesting approach.
:0
* 1^1 LISTS ?? ^.*$
{ COUNT = $= }
FOR_INDEX = 1 # required
FOR_MAXIMUM = $COUNT # required
FOR_PROCEDURE='tally.rc' # required
INCLUDERC='swa-for_loop.rc'
:0
* 1^1 CUR_LIST ?? ^.*$
{ TALLY="$TALLY$NL$= Total" }
Ah, yes, that's clever.
# Recursive for loop
# Maybe I'm blind? Procmail doesn't seem to have a "for
loop" (or while,until,goto,gosub,loop,etc...)
# This procedure uses recursion to simulate this bash for
loop:
Ah, and even more cleverness!
--
Man is born free, but is everywhere in chains.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail