+ # Try to send it
+ if [ -x "`which sendmail 2>/dev/null`" ]; then
+ echo Mailing request from $REQUEST_FILE
+ if sendmail -t -oi < $REQUEST_FILE; then
+ requestsent=1
+ fi
+ fi
+
+ if [ -z "$requestsent" ]; then
+ db_input high bacula-cn/mail-failed || true
+ db_go || true
+ fi