more debug to find out why setVacationUser is not working

This commit is contained in:
Klaus Leithoff 2010-08-26 08:08:24 +00:00
parent cfa5711233
commit 583b11c2ad
2 changed files with 4 additions and 1 deletions

View File

@ -591,7 +591,7 @@ class defaultimap extends Net_IMAP
*/
public function __call($name,array $params=null)
{
error_log(__METHOD__.'->'.$name.' with params:'.array2string($params));
//error_log(__METHOD__.'->'.$name.' with params:'.array2string($params));
switch($name)
{
case 'installScript':

View File

@ -67,6 +67,7 @@ class emailadmin_sieve extends Net_Sieve
*/
function _connect($_icServer,$euser='')
{
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.array2string($euser));
if(is_a($_icServer,'defaultimap') && $_icServer->enableSieve) {
$sieveHost = $_icServer->host;
$sievePort = $_icServer->sievePort;
@ -88,6 +89,7 @@ class emailadmin_sieve extends Net_Sieve
return false;
}
if(PEAR::isError($this->error = $this->login($username, $password, null, $euser) ) ){
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.array2string($this->icServer));
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": error in login($username,$password,null,$euser): ".$this->error->getMessage());
return false;
}
@ -160,6 +162,7 @@ class emailadmin_sieve extends Net_Sieve
*/
function setVacationUser($_euser, $_scriptName, $_vacation)
{
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.' User:'.array2string($_euser).' Scriptname:'.array2string($_scriptName).' VacationMessage:'.array2string($_vacation));
if (!$_scriptName) $_scriptName = $this->scriptName;
if ($this->_connect($this->icServer,$_euser) === true) {
$this->setVacation($_scriptName,$_vacation);