home · contact · privacy
Send TODO mail to user on server postinstall script finish.
[config] / bin / simplemail.sh
1 #!/bin/sh
2 #
3 # This mails to user plom the message in the file named by the first parameter,
4 # decoded with the first line as subject and everything below the second line
5 # as the message body. The subject line MUST NOT contain '"' double quotes.
6
7 subject=`head -1 $1`
8 body=`tail -n +2 $1`
9 echo $body | mutt -s "$subject" plom