diff --git a/emailadmin/inc/class.defaultimap.inc.php b/emailadmin/inc/class.defaultimap.inc.php index 3a8adc662d..813804dc46 100644 --- a/emailadmin/inc/class.defaultimap.inc.php +++ b/emailadmin/inc/class.defaultimap.inc.php @@ -591,6 +591,7 @@ class defaultimap extends Net_IMAP */ public function __call($name,array $params=null) { + error_log(__METHOD__.'->'.$name.' with params:'.array2string($params)); switch($name) { case 'installScript': @@ -603,7 +604,6 @@ class defaultimap extends Net_IMAP case 'retrieveRules': case 'getVacation': case 'setVacation': - case 'setVacationUser': if (is_null($this->sieve)) { $this->sieve = new emailadmin_sieve($this); @@ -616,4 +616,15 @@ class defaultimap extends Net_IMAP } throw new egw_exception_wrong_parameter("No method '$name' implemented!"); } + + public function setVacationUser($_euser, $_scriptName, $_vacation) + { + if (is_null($this->sieve)) + { + $this->sieve = new emailadmin_sieve(); + $this->scriptName =& $this->sieve->scriptName; + $this->error =& $this->sieve->error; + } + return $this->sieve->setVacationUser($_euser, $_scriptName, $_vacation); + } } diff --git a/emailadmin/inc/class.emailadmin_sieve.inc.php b/emailadmin/inc/class.emailadmin_sieve.inc.php index 9cf7a2c159..55e03bd0b4 100644 --- a/emailadmin/inc/class.emailadmin_sieve.inc.php +++ b/emailadmin/inc/class.emailadmin_sieve.inc.php @@ -158,7 +158,7 @@ class emailadmin_sieve extends Net_Sieve * @param string $_vaction * @return boolean true on success false otherwise */ - function setVactionUser($_euser, $_scriptName, $_vaction) + function setVacationUser($_euser, $_scriptName, $_vacation) { if (!$_scriptName) $_scriptName = $this->scriptName; if ($this->_connect($this->icServer,$_euser) === true) {