procmail
[Top] [All Lists]

Re: autobounce: I ALMOST got it

1997-06-16 07:22:00

  :0 c
  TEMP=|cat 

What does this do?

Well, since no expert answered, the newbie will :-)  Then the experts
can tell us what I got wrong :-) :-)

cat with no filename uses stdin as the input "file"--in this case, the
incoming message.   =| puts the output of that (again the whole
message) as a new string value for the environment variable TEMP.  In
Korn shell, this would be 'TEMP="$(cat)"  So later, I can say  'echo
$TEMP' to output the message to something else.

**HOWEVER**, please note that other(s) have posted a better way to get
the job done.

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