don't try to connect to port 0
This commit is contained in:
parent
e2c9d04b36
commit
4b6a24ec3f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue