procmail
[Top] [All Lists]

Re: Rerun procmail filters on maildir folder.

2002-07-26 02:01:17
On Thu, Jul 25, 2002 at 11:12:45AM -0500, David W. Tamkin wrote:

Is /bin/sh on your system a shell that groks tildes and $(...) command
substitution?  Pure sh wouldn't understand either, but often /bin/sh is a link
to bash or zsh or ksh and there would be no problem.

bash.


 for file in $TEMPDIR/*
 do
  procmail $PROCMAILRC < "$file" && rm "$file"
 done

How will this work? Will it remove $file only if the procmail command succeeds?


-- 
Alex Polite
http://plusseven.com/gpg/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail