Looks excellent to me ...
But for some odd reason, I am picturing some poor English major reading
this verbatim to his family as part of an MS Bing commercial. :-|
On Wed, 2009-11-18 at 21:32 -0700, LuKreme wrote:
Made a slight change since I noticed that messages in .../new/ do not fit the
same pattern, at least not in my maildirs.
BIGLIST=`ls -1dA $HOME/Maildir/.*[0-9]-*/{cur,new}/*{net,','} 2>/dev/null |
awk -F/ '{print $5}'`;
LIST=`echo "$BIGLIST"|uniq`
TOTALC=0
for i in $LIST; do
COUNT=`echo "$BIGLIST"| grep $i |wc -l`
echo "$COUNT in $i"
TOTALC=$(( $TOTALC + $COUNT ))
done
echo "$TOTALC unread"
the 'net' is because my .../new/* messages end in .net, so this catches those
and the ones in .../cur/ that end in ','
Normally this is not an issue as I have at least one MUA online pretty much
all the time, but this morning I didn't and the unread counts never changed.
--
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠
____________________________________________________________
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