X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=bin%2Fsimplemail.sh;fp=bin%2Fsimplemail.sh;h=6cbc5528d984fd5aa0607a9a61d1c2537b452f2b;hb=fc8842a26216cc5b7853c3638bebce6d43a6cf72;hp=0000000000000000000000000000000000000000;hpb=1d2507e56b471fa29c42dc220817b27632d7667a;p=config diff --git a/bin/simplemail.sh b/bin/simplemail.sh new file mode 100755 index 0000000..6cbc552 --- /dev/null +++ b/bin/simplemail.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# +# 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. + +subject=`head -1 $1` +body=`tail -n +2 $1` +echo $body | mutt -s "$subject" plom