summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/devlist-mailer11
1 files changed, 9 insertions, 2 deletions
diff --git a/cron-jobs/devlist-mailer b/cron-jobs/devlist-mailer
index 094d60d..b24d530 100755
--- a/cron-jobs/devlist-mailer
+++ b/cron-jobs/devlist-mailer
@@ -4,13 +4,20 @@
LIST="arch-dev-public@archlinux.org"
#LIST="aaronmgriffin@gmail.com"
-FROM="repomaint"
+FROM="repomaint@archlinux.org"
+
+SUBJECT="Repository Maintenance $(date +"%d-%m-%Y %H:%M")"
+if [ $# -eq 1 ]; then
+ SUBJECT="$1"
+fi
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")
+echo "Subject: $SUBJECT
+To: $LIST
+From: $FROM
$stdin" | /usr/sbin/sendmail -F$FROM "$LIST"