procmail
[Top] [All Lists]

Re: Why doesn't this recipe work? (123)

1997-11-26 20:27:01
Nick Halloway can't get good results when a recipe has this action line:

  |cat >junk.mail

but he has no problem when the recipe's action is this:

  | /usr/ucb/vacation snowe 

Strong suspicion is that we have a shell problem here, because the action
that doesn't work includes a character from $SHELLMETAS and thus procmail
invokes a shell to run it, whereas the one that works contains no such
characters and procmail invokes vacation directly.

So, how is the variable SHELL set in your rcfile, Nick?  If there is no such
setting and procmail is the LDA, how is it set in /etc/procmailrc?  If proc-
mail is not the LDA, or if it is but /etc/procmailrc doesn't set the varia-
ble, what is the default shell for that account per /etc/passwd?

Second: what is the value of $PATH there?  /usr/ucb/vacation, invoked by its
full absolute path, works, but the raw basename "cat" doesn't seem to get its
job done; does $PATH include the directory where the cat binary resides?