From 8a7f3f76a02c968a4d9e6aa1561ff4f7749229bf Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 8 Oct 2015 22:53:38 +0200 Subject: [PATCH 1/1] Fix simplemail script newlines-dropping issue. --- bin/simplemail.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2