jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 571cd45676cd5e326fb18998e0c161b1cd199a7b
parent ca29b18b1fe21f9ab923935d9c8c8d5a5cc6c9da
Author: Jaromil <jaromil@dyne.org>
Date:   Wed,  7 May 2014 17:20:50 +0200

fix to send of multiple queued mails

Diffstat:
Msrc/zlibs/email | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/zlibs/email b/src/zlibs/email @@ -273,8 +273,9 @@ send() { # list mails to send - queue_outbox=(`${=find} "${MAILDIRS}/outbox" -type f`) - { test ${#queue_outbox} = 0 } && { + queue_outbox=`${=find} "${MAILDIRS}/outbox" -type f` + queue_outbox_num=`${=find} "${MAILDIRS}/outbox" -type f|wc -l` + { test "$queue_outbox_num" = "0" } && { act "Outbox is empty, no mails to send." return 0 } @@ -291,7 +292,7 @@ send() { is_online ${host} ${port} { test $? = 0 } || { return 1 } - notice "Sending out ${#queue_outbox} mails via ${type}.${account}" + notice "Sending out $queue_outbox_num mails via ${type}.${account}" { test $DRYRUN = 1 } && { return 0 }