From 4b6a24ec3fe43a9b54eacd02684d07eb4a853a2c Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 18 Apr 2011 16:00:02 -0700 Subject: [PATCH] don't try to connect to port 0 --- include/email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/email.php b/include/email.php index 91aafd45e..db10af2ee 100644 --- a/include/email.php +++ b/include/email.php @@ -20,7 +20,7 @@ function email_poll($mbox,$email_addr) { function construct_mailbox_name($mailacct) { - $ret = '{' . $mailacct['server'] . (($mailacct['port']) ? ':' . $mailacct['port'] : ''); + $ret = '{' . $mailacct['server'] . ((intval($mailacct['port'])) ? ':' . $mailacct['port'] : ''); $ret .= (($mailacct['ssltype']) ? '/' . $mailacct['ssltype'] . '/novalidate-cert' : ''); $ret .= '}' . $mailacct['mailbox']; return $ret;