From 0bfcdc144e63167d37578c6c33b6c4113d1f8c5b Mon Sep 17 00:00:00 2001
From: Dinko Korunic <kreator@carnet.hr>
Date: Fri, 22 May 2009 12:32:41 +0200
Subject: [PATCH] * Ispravak za cp_mail: pokusava se pozvati sendmail wrapper
 cak i kad ne   postoji na sustavu

---
 debian/changelog |    7 +++++++
 functions.sh     |    8 +++++---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 62bc447..3834900 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+carnet-tools-cn (2.8.3) stable; urgency=low
+
+  * Ispravak za cp_mail: pokusava se pozvati sendmail wrapper cak i kad ne
+    postoji na sustavu
+
+ -- Dinko Korunic <kreator@carnet.hr>  Fri, 22 May 2009 12:32:16 +0200
+
 carnet-tools-cn (2.8.2) stable; urgency=low
 
   * Ispravak za cp_mail gdje je zalutao whitespace i uzrokovao blacklisting od
diff --git a/functions.sh b/functions.sh
index 38cd05f..24c7cf9 100644
--- a/functions.sh
+++ b/functions.sh
@@ -337,9 +337,11 @@ is included below.
 
 ----------
 ${CP_NOTICE}----------"
-  
-    echo "$CP_NOTICE" | /usr/sbin/sendmail -t -oi &
-    sleep 1
+
+    if [ -x /usr/sbin/sendmail ]; then
+      echo "$CP_NOTICE" | /usr/sbin/sendmail -t -oi &
+      sleep 1
+    fi
   fi
 }
 
-- 
1.7.10.4