On 17-Nov-2009, at 16:35, JW Simpson wrote:
CUR_LIST=`/usr/bin/find Maildir/ -regex '.*/cur/.*,'|/usr/bin/gawk -F/
'{print $2}'`
This is very very slow though.
$ time /usr/bin/find Maildir/ -regex '.*/cur/.*,'|/usr/bin/awk -F/ '{print $2}'
[…]
real 0m19.055s
user 0m15.869s
sys 0m0.183s
$ time for i in `ls -A $HOME/Maildir/ | grep '[0-9]-*'`; do ls -1
$HOME/Maildir/$i/{cur,new}/*, 2>/dev/null ; done
[…]
real 0m0.652s
user 0m0.120s
sys 0m0.497s
--
'I'm a raven, aren't I?' it said. 'One of the few birds who speak. The first
thing people say is, oh, you're a raven, go on, say the N word... If I had a
penny for every time that's happened, I'd-' --Soul Music
____________________________________________________________
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