procmail
[Top] [All Lists]

Re: Procmail hangs...

1998-01-14 14:24:08
On Wed, 14 Jan 1998, Philip Guenther wrote:

You have a shell precedence problem here: '|' has a higher precedence
than '&&'.  The shell piped the 'cat' into the assignment to IFS, then
since that succeeded, it execed procmail.  If you want to test it you'll
need to wrap the .forward contents in parens:

      cat /tmp/farto|(IFS=' '&&exec /usr/local/bin/procmail -f-||exit 75)

(Insert spaces to make that readable.)
 
 OK!  So that makes sense, and it works fine.  Delivers the mail.
 BUT:  When I put this in my .forward:

 "|IFS=' '&&exec /usr/local/bin/procmail -f-||exit 75 #beckman"

 Mail DOES NOT get delivered.  I have lost a bunch of mail because of
 this.  What is wrong with the above?  Parens precedence?  I am
 confused because the documentation says this works.  BUT it doesn't
 seem to.......

---------------------------------------------------------------------------
Peter Beckman      Webmaster, Northern Virginia Internet Access Cooperative
beckman(_at_)purplecow(_dot_)com                             
http://www.purplecow.com/
---------------------------------------------------------------------------

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