From d2ce9d0893421cb35c62edad84bbadd1bf917d9e Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 20 May 2008 23:19:02 -0400 Subject: Added a simple sendmail-ish script to send to the ML Signed-off-by: Aaron Griffin --- cron-jobs/devlist-mailer | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 cron-jobs/devlist-mailer (limited to 'cron-jobs/devlist-mailer') diff --git a/cron-jobs/devlist-mailer b/cron-jobs/devlist-mailer new file mode 100755 index 0000000..b9a27e3 --- /dev/null +++ b/cron-jobs/devlist-mailer @@ -0,0 +1,16 @@ +#!/bin/bash +#Dummy helper to send email to arch-dev +# It does nothing if no output + +#LIST="arch-dev-public@archlinux.org" +LIST="aaronmgriffin@gmail.com" +FROM="cron@archlinux.org" + +stdin="$(cat)" +#echo used to strip whitespace for checking for actual data +if [ -n "$(echo $stdin)" ]; then + echo "Subject: Repository Maintenance $(date +"%d-%m-%Y %H:%M") + From: cron@archlinux.org + + $stdin" | /usr/sbin/sendmail -F$FROM "$LIST" +fi -- cgit v1.2.3-24-g4f1b