procmail
[Top] [All Lists]

Re: possible to procmail all existing fetched mails?

2009-04-07 01:53:55
Kreemy,

find ~/Maildir/{cur,new} -type f -exec procmail < {} \;
find ~/Maildir/.*/{cur,new} -type f -exec procmail < {} \;

I think that works...

Nope. The redirection will be set up first, and the shell will complain that it can't open {}.

Maybe replacing < with \< will get it to work.  Otherwise, there is

 find ~/Maildir/{cur,new} ~/Maildir/.*/{cur,new} -type f -print | \
 while read file
 do procmail < "$file"
 done

but all of these presuppose a shell that will expand {cur,new}.
____________________________________________________________
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