diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-13 21:52:56 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-13 21:52:56 (GMT) |
commit | 8e76e70f54a6ff4ca433de3dd7edd8f1c06b2672 (patch) | |
tree | a1255ef85d23cb8ad8ba0a03942bd045d2e6a243 | |
parent | d7e155efd9e2e5c6904aeb9ebca9feeb27aea5c8 (diff) |
moved to bsd-mailx
-rw-r--r-- | depends | 1 | ||||
-rwxr-xr-x | rhautoimport | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -6,3 +6,4 @@ liburi-perl libwww-perl libxml-feed-perl perl +bsd-mailx diff --git a/rhautoimport b/rhautoimport index 4534fa7..1ffd50f 100755 --- a/rhautoimport +++ b/rhautoimport @@ -67,7 +67,7 @@ fi /usr/bin/rhautoimport-$1 ${@:2} > $LOG_FILE 2>&1 case $? in 0) - mail -a "Content-Type: text/plain; charset=utf-8" -s "$TITLE - Imported Successfully" $MAIL_TO < $LOG_FILE + bsd-mailx -a "Content-Type: text/plain; charset=utf-8" -s "$TITLE - Imported Successfully" $MAIL_TO < $LOG_FILE ;; 42) # do nothing - the script didn't import anything but no message should be sent @@ -78,7 +78,7 @@ fi else subject="$TITLE - Import Error - will retry" fi - mail -a "Content-Type: text/plain; charset=utf-8" -s "$subject" $MAIL_TO < $LOG_FILE + bsd-mailx -a "Content-Type: text/plain; charset=utf-8" -s "$subject" $MAIL_TO < $LOG_FILE ;; esac rm -f $LOG_FILE |