mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 16:38:39 +01:00
fix a typo in emailadmin_sieve; create a wrapperfunction for setVacationUser in defaultimap to make sure we control the connect as emailadmin
This commit is contained in:
parent
a99ae11549
commit
cfa5711233
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user