From f59fae1b521b3b585bce7d5051ba949c0b2ecfd6 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Dec 2008 08:45:09 +0000 Subject: [PATCH] Updated DEBUG infos for default mail mehtod git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13228 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mail-methods.inc | 42 +++++-------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods.inc b/gosa-plugins/mail/personal/mail/class_mail-methods.inc index e59b30f12..768515c52 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods.inc @@ -93,9 +93,9 @@ class mailMethod{ */ if ($this->config->get_cfg_value("cyrusUseSlashes") == "true"){ $this->cyrusUseSlashes = TRUE; - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "cyrusUseSlashes: Enabled",""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "","MAIL: cyrusUseSlashes: Enabled"); }else{ - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "cyrusUseSlashes: Disabled",""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "","MAIL: cyrusUseSlashes: Disabled"); } /* Check if the mail account identification attribute @@ -107,7 +107,7 @@ class mailMethod{ $this->uattrib = $new_uattrib; }else{ @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "".$new_uattrib."", - "Unsupported 'mailAttribute' in gosa configuration specified"); + "MAIL: Unsupported 'mailAttribute' in gosa configuration specified"); msg_dialog::display(_("Configuration error"), sprintf(_("The configured mail attribute '%s' is unsupported!"), $new_uattrib), ERROR_DIALOG); } @@ -193,8 +193,8 @@ class mailMethod{ public function connect() { $this->reset_error(); - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"Connect method: ".get_class($this),""); - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"Current server: ".$this->MailServer,""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"","MAIL: Connect method: ".get_class($this)); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"","MAIL: Current server: ".$this->MailServer); $this->connected = TRUE; return(TRUE); @@ -217,7 +217,7 @@ class mailMethod{ { $this->reset_error(); if($this->is_connected()){ - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"Disconnect method: ".get_class($this),""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"","MAIL: Disconnect method: ".get_class($this)); $this->connected =FALSE; } } @@ -298,7 +298,7 @@ class mailMethod{ if($this->account_id != $str){ $this->account_id = $str; - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "accountID generated: ".$str."",""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"", "MAIL: AccountID generated: ".$str.""); } } @@ -360,13 +360,13 @@ class mailMethod{ $method= $this->config->get_cfg_value("mailmethod"); $cls = get_correct_class_name("mailMethod$method"); if(isset($methods[$cls])){ - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "Selected mailMethod: ".$cls."",""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"", "MAIL: Selected mailMethod: ".$cls.""); $tmp = new $cls($this->config,$this->parent,$this->type); $tmp->init(); return($tmp); }else{ - @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "Invalid mailMethod defined ".$cls. - " falling back to ".get_class($this)."",""); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "","MAIL: Invalid mailMethod defined: ".$cls. + " falling back to ".get_class($this).""); /* Print out configuration errors directly, we can't catch them everywhere. */ @@ -417,29 +417,9 @@ class mailMethod{ $this->reset_error(); @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "".$this->account_id."" , - "Remove account from server :".$this->MailServer); + "MAIL: Remove account from server :".$this->MailServer); return(TRUE); - - /* No imap actions here, just updated shared folder membership - */ - $ldap = $this->config->get_ldap_link(); - $ldap->cd($this->config->current['BASE']); - $ldap->search("(&(objectClass=posixGroup)(objectClass=gosaMailAccount)(memberUid=".$account."))",array('dn','cn')); - if(class_exists("grouptabs")){ - while($attrs = $ldap->fetch()){ - $tmp = new grouptabs($this->config, $this->config->data['TABS']['GROUPTABS'], $attrs['dn']); - if(isset($tmp->by_object['mailgroup'])){ - $tmp->by_object['mailgroup']->members= $tmp->by_object['group']->memberUid; - if(!$this->is_account){ - $tmp->by_object['mailgroup']->removeUserAcl($account); - $tmp->by_object['mailgroup']->removeUserAcl($this->mail); - } - $tmp->by_object['mailgroup']->save(); - } - } - } - return(TRUE); } -- 2.30.2