From: Christian Heller Date: Thu, 8 Oct 2015 20:53:38 +0000 (+0200) Subject: Fix simplemail script newlines-dropping issue. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/processes?a=commitdiff_plain;h=8a7f3f76a02c968a4d9e6aa1561ff4f7749229bf;p=config Fix simplemail script newlines-dropping issue. --- diff --git a/bin/simplemail.sh b/bin/simplemail.sh index 6cbc552..af0eb1a 100755 --- a/bin/simplemail.sh +++ b/bin/simplemail.sh @@ -2,8 +2,8 @@ # # This mails to user plom the message in the file named by the first parameter, # decoded with the first line as subject and everything below the second line -# as the message body. The subject line MUST NOT contain '"' double quotes. +# as the message body. subject=`head -1 $1` -body=`tail -n +2 $1` -echo $body | mutt -s "$subject" plom +body=`tail -n +3 $1` +echo "$body" | mutt -s "$subject" plom