Tomas Karlsson wrote,
| I am pulling my hair trying to understand how to make the below sed
| command to format the body message with a new line and not only the
| '> 'character separating the lines.
|
| BODY=`formail -I "" | sed 's/^/> /' `
Hmm. Before I get to Tomas's question, this is a more efficient way of
doing the above:
:0b
BODY=|sed 's/^/> /'
Anyhow,
| This is my output when receiving the email:
| > first line > second line > third line
|
| Any suggestions?
I get the feeling that Tomas is looking at the output by using
echo $BODY
instead of
echo "$BODY"
The problem is the way echo and the shell interact; it is not a facet of
procmail.