X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=bin%2Fsimplemail.sh;h=af0eb1a9d4886bb7bd4e5e25274f2b98adfb58b5;hb=8a7f3f76a02c968a4d9e6aa1561ff4f7749229bf;hp=6cbc5528d984fd5aa0607a9a61d1c2537b452f2b;hpb=f4d5791afb64192c9d248f0f3169bd491f5d0c5d;p=config 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