_("IMAP STARTTLS is enabled in SquirrelMail configuration, but used PHP version does not support functions that allow to enable encryption on open socket."));
exit;
}
}
return array($imap_stream, $server_info);
}
/**
* Retreive the CAPABILITY string from the IMAP server.
* If capability is set, returns only that specific capability,
* else returns array of all capabilities.
*/
function sqimap_capability($imap_stream, $capability='', $use_cache=TRUE) {
global $sqimap_capabilities;
$capabilities = $sqimap_capabilities; // don't overwrite global value
if (preg_match('/[^ ]+ +([^ ]+) +EXISTS/', $read_ary[$i], $regs)) {
return $regs[1];
}
}
return false; //"BUG! Couldn't get number of messages in $mailbox!";
}
/**
* Parses an address string.
FIXME: the original author should step up and document this - the following is a guess based on a couple simple tests of *using* the function, not knowing the code inside
*
* @param string $address Generic email address(es) in any format, including