I have a procmailrc file that is collecting some variables from mail headers, then echo'ing those variables into the message body. Like this:
:0bfw
| echo Subject_ "${SUBJECT_}" ; echo From_ "${FROM_}" ; echo To_ "${TO_}" ; echo CC_ "${CC_}" ; echo "" ; cat
This works okay in general. It is correctly echo'ing what I want it to echo. But it's echoing those variables into a separate part of the message, like this:
Content-Type: multipart/alternative; boundary=001a11c1367a19ff420508126c21
Subject_ Subject variable is here
From_ variable@whatever
To_ variable@whatever
CC_
--001a11c1367a19ff420508126c21
Content-Type: text/plain; charset=UTF-8
The rest of the message body is here, in a separate message part.
How can I make procmail echo those variables into the same part of the message as the rest of the email body?