|
|
@ -40,8 +40,12 @@ class rcube_poppassd_password
|
|
|
|
$rcmail = rcmail::get_instance();
|
|
|
|
$rcmail = rcmail::get_instance();
|
|
|
|
// include('Net/Socket.php');
|
|
|
|
// include('Net/Socket.php');
|
|
|
|
$poppassd = new Net_Socket();
|
|
|
|
$poppassd = new Net_Socket();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$host = $rcmail->config->get('password_pop_host', 'localhost');
|
|
|
|
|
|
|
|
$host = rcube_utils::parse_host($host);
|
|
|
|
|
|
|
|
$port = $rcmail->config->get('password_pop_port', 106)
|
|
|
|
|
|
|
|
|
|
|
|
$result = $poppassd->connect($rcmail->config->get('password_pop_host'), $rcmail->config->get('password_pop_port'), null);
|
|
|
|
$result = $poppassd->connect($host, $port, null);
|
|
|
|
if (is_a($result, 'PEAR_Error')) {
|
|
|
|
if (is_a($result, 'PEAR_Error')) {
|
|
|
|
return $this->format_error_result(PASSWORD_CONNECT_ERROR, $result->getMessage());
|
|
|
|
return $this->format_error_result(PASSWORD_CONNECT_ERROR, $result->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|