Re: procmail - filtering already received mails
Florian Friesdorf <42ff@gmx.net> writes:
> > for i in `ls`; do
> > echo -n "$i: ";
> > procmail < $i && rm $i;
> > echo "done.";
> > done
>
> I still don't understand what was going on, but with this one it worked fine.
>
> (for i in `ls`; do echo -n "$i: "; procmail < $i && rm $i; echo "done."; done) > ../log 2>&1 &
Not to say that this is the cause of slowness, but you may still want
to change the `ls` to *. This will save running ls, and opening and
closing a pipe:
for i in *; do
...
--
Arcady Genkin
Don't read everything you believe.
Reply to: