[Top] [All Lists]

embedding newlines in procmail actions

1997-10-26 09:12:05
Era Eriksson wrote, where "$COMMAND" included embedded newlines,

| # You might have to muck with SHELLMETAS here
| :0bw
| * ^Subject: xxxxx
| | eval "$COMMAND"

Procmail will complain that there is no executable named "eval" to be found
in the directories in $PATH, but this time the solution is not to change
$SHELLMETAS to suit the action but rather to change the action to suit

  * ^Subject: xxxx
  | eval "$COMMAND" ;

This is a standard trick for using shell built-ins.

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