1
1
Fork 0

don't try to connect to port 0

This commit is contained in:
Friendika 2011-04-18 16:00:02 -07:00
parent e2c9d04b36
commit 4b6a24ec3f

View file

@ -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;