|
|
|
@ -62,7 +62,8 @@ class rcube_sieve
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($username, $password='', $host='localhost', $port=2000,
|
|
|
|
|
$auth_type=null, $usetls=true, $disabled=array(), $debug=false,
|
|
|
|
|
$auth_cid=null, $auth_pw=null, $options=array())
|
|
|
|
|
$auth_cid=null, $auth_pw=null, $options=array(), $gssapi_principal=null,
|
|
|
|
|
$gssapi_cname=null)
|
|
|
|
|
{
|
|
|
|
|
$this->sieve = new Net_Sieve();
|
|
|
|
|
|
|
|
|
@ -70,6 +71,14 @@ class rcube_sieve
|
|
|
|
|
$this->sieve->setDebug(true, array($this, 'debug_handler'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($gssapi_principal)) {
|
|
|
|
|
$this->sieve->setServicePrincipal($gssapi_principal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($gssapi_cname)) {
|
|
|
|
|
$this->sieve->setServiceCN($gssapi_cname);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$result = $this->sieve->connect($host, $port, $options, $usetls);
|
|
|
|
|
|
|
|
|
|
if (is_a($result, 'PEAR_Error')) {
|
|
|
|
|