On Sat, 5 Apr 1997, Tim wrote:
:0
? test -x /usr/local/nuglops/bin/formail
{ FORMAIL=/usr/local/nuglops/bin/formail }
:0 E
{ FORMAIL=`ksh -c "echo ~vjl/bin/formail"` }
[snip]
procmail: Skipped "test -x /usr/local/nuglops/bin/formail"
procmail: Assigning "LASTFOLDER=?"
procmail: Opening "?"
procmail: Acquiring kernel-lock
From bodysurf Sat Apr 5 09:40:54 1997
Subject: TEST #2
Folder: ? 911
procmail: Notified comsat: "bodysurf(_at_)56206:/u5/bodysurf/Mail/?"
Look for a file "Mail/?". Your mail might be there. Procmail thinks
there is no condition, and is trying to deliver it to "?".
:0
* ? test -x /usr/local/nuglops/bin/formail
{ FORMAIL=/usr/local/nuglops/bin/formail }
So, you probably want a * in front of line 2 to make it a condition.
:0 E
{ FORMAIL=`ksh -c "echo ~vjl/bin/formail"` }
And I wonder about the tilde in line five. Your recipe didn't get that
far on the example you sent, but procmail won't expand tildes, if that
is what you wanted it to do. Or will it, in this case? I haven't tried
using ksh this way in setting a var.
David