commit b9cfa16179c0e6e2b88df33d180c547c85d9acd5
parent e983cc675a9caf9cac14fb93a22b07aa5e4ca7ff
Author: Jaromil <jaromil@dyne.org>
Date:   Thu,  8 Jan 2015 19:16:50 +0100
correct outbox detection
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/zlibs/email b/src/zlibs/email
@@ -266,8 +266,8 @@ send() {
     # list mails to send
     queue_outbox=`${=find} "${MAILDIRS}/outbox" -type f`
     queue_outbox_num=`print $queue_outbox | wc -l`
-    { test "$queue_outbox_num" = "0" } && {
-        act "Outbox is empty, no mails to send."
+    [[ "$queue_outbox" = "" ]] && {
+        notice "Outbox is empty, no mails to send."
         return 0 }
 
     read_account ${account}