Re: procmail - filtering already received mails
Florian Friesdorf <firstname.lastname@example.org> 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
Don't read everything you believe.