procmail
[Top] [All Lists]

Re: can procmail report how many msgs it has processed during processing

2013-09-15 12:46:09
On Sat, Sep 14, 2013 at 12:31 PM, Harry Putnam <reader(_at_)newsguy(_dot_)com> 
wrote:

 cat spam-ham-mixed | formail -e -s procmail -m ${sandbox}/.prc

Is there a better way?

If spam-ham-mixed is just one file, then the only improvement to the
above would be to avoid the "useless use of cat":

    formail -e -s procmail -p -m ${sandbox}/.prc < spam-ham-mixed

The -p is the answer to your other problem:

Trying:
LOG="Processing message $FILENO
"

That doesn't seem to be working here

Sorry about that.  You need the -p option to procmail so that it
doesn't erase the environment variables that formail sets up.
____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>