From 8e76e70f54a6ff4ca433de3dd7edd8f1c06b2672 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Sun, 13 Mar 2016 22:52:56 +0100
Subject: moved to bsd-mailx


diff --git a/depends b/depends
index 57d9253..c0e7297 100644
--- a/depends
+++ b/depends
@@ -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
-- 
cgit v0.10.2