From a4f5610fd21bab74852712527beb09947cd423dd Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Mar 2007 07:00:19 +0000 Subject: [PATCH] Updated indentification attribute used for sieve login. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5909 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_sieveManagement.inc | 9 ++++++--- plugins/personal/mail/class_mailAccount.inc | 6 +++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/include/sieve/class_sieveManagement.inc b/include/sieve/class_sieveManagement.inc index be2ef4ed9..0ac0afe15 100644 --- a/include/sieve/class_sieveManagement.inc +++ b/include/sieve/class_sieveManagement.inc @@ -31,7 +31,7 @@ class sieveManagement extends plugin { var $parent = NULL; var $scripts= array(); - + var $uattrib = "uid"; var $current_script = -1; var $current_handler = NULL; var $script_to_delete =-1; @@ -58,8 +58,9 @@ class sieveManagement extends plugin /* Initialize the class and load all sieve scripts * try to parse them and display errors */ - function sieveManagement($config,$dn,$parent) + function sieveManagement($config,$dn,$parent,$uattrib) { + $this->uattrib = $uattrib; $this->parent = $parent; plugin::plugin($config,$dn); @@ -133,11 +134,13 @@ class sieveManagement extends plugin $cfg= $this->config->data['SERVERS']['IMAP'][$this->parent->gosaMailServer]; $this->Sieve_Error = ""; + $uattrib = $this->uattrib; + /* Log into the mail server */ $this->sieve_handle= new sieve( $cfg["sieve_server"], $cfg["sieve_port"], - $this->parent->uid, + $this->parent->$uattrib, $cfg["password"], $cfg["admin"]); diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index ff796593e..289e15420 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -241,7 +241,11 @@ class mailAccount extends plugin if(isset($_POST['sieveManagement']) && preg_match("/C/",$this->gosaMailDeliveryMode) && $this->acl_is_writeable("sieveManagement")) { - $this->dialog = new sieveManagement($this->config,$this->dn,$this); + + $method = new $this->method($this->config); + $id = $method->uattrib; + + $this->dialog = new sieveManagement($this->config,$this->dn,$this,$id); } /* Cancel sieve edit */ -- 2.30.2