commit cd200c1b0a5d6f565412890995fa6cf7129b8f5e
parent 00619fd9eb72798bb06da1313e73a345ddf80515
Author: Jaromil <jaromil@dyne.org>
Date: Sun, 12 Aug 2012 18:01:44 -0700
stability / portability improvements
removed imap_get_info query (experimental)
also removed dependency from timeout (coreutils in debian but not in ubuntu...)
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/zlibs/email b/src/zlibs/email
@@ -101,7 +101,7 @@ fetch() {
notice "Examining mailbox for $name <$email> on $host"
# check if its online
- timeout 2 netcat -z ${host} ${port} > /dev/null
+ nc -w 8 -z ${host} ${port} > /dev/null
{ test $? = 0 } || {
error "server is off-line or unreachable, skipped"
return 1 }
@@ -109,7 +109,8 @@ fetch() {
ask_password $login $host
# this puts total size in $imap_info
- get_imap_info
+ # experimental only, commented out for now
+ # get_imap_info
# return here if the imap folders are all empty
{ test ${imap_info[${#imap_info}]} = 0 } && {