home · contact · privacy
Set up htwtxt restart reminder.
[config] / bin / simplemail_out.sh
diff --git a/bin/simplemail_out.sh b/bin/simplemail_out.sh
new file mode 100755 (executable)
index 0000000..8340944
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# This mails to plom@plomlompom.com 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.
+
+subject=`head -1 $1`
+body=`tail -n +3 $1`
+echo "$body" | mutt -s "$subject" plom@plomlompom.com