diff --git a/src/cron_users_doit.sh b/src/cron_users_doit.sh index 2998a136..0585e2e0 100755 --- a/src/cron_users_doit.sh +++ b/src/cron_users_doit.sh @@ -23,8 +23,6 @@ for CONFIG_FILE in \ . "$CONFIG_FILE" done -from="noreply@$FQDN" - if [ "x$url" == "x" ] ; then echo Missing arguments exit 0 @@ -62,7 +60,7 @@ echo -e "\n---------- END ----------" # If there is an email specified, mail it if [ ! "x$email" == "x" -a ! "$email" == "null" ] ; then date=$(date +%x\ %X) - cat "$tmpfile" | mailx -s "AlternC Cron #$id - Report $date" -r "$from" "$(urldecode $email)" + cat "$tmpfile" | mailx -s "AlternC Cron #$id - Report $date" -a "From: noreply@$FQDN" "$(urldecode $email)" fi rm -f "$tmpfile"