From 43294815551b73a6b67318f68ad1131a248c2966 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 Dec 2008 09:47:32 +0000 Subject: [PATCH] Updated mail group git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13197 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/admin/groups/mail/class_groupMail.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc index 32da99f4d..ade0f17f9 100644 --- a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc +++ b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc @@ -44,10 +44,12 @@ class mailgroup extends plugin { plugin::plugin($config, $dn); + /* Intialize the used mailMethod */ $tmp = new mailMethod($config,$this,"group"); $this->mailMethod = $tmp->get_method(); + $this->mailMethod->fixAttributesOnLoad(); $this->mailDomainParts = $this->mailMethod->getMailDomains(); $this->AvailableFolderTypes = $this->mailMethod->getAvailableFolderTypes(); $this->AclTypes = $this->mailMethod->getAclTypes(); @@ -490,10 +492,8 @@ class mailgroup extends plugin $this->attrs['gosaMailForwardingAddress']= array(); $this->attrs['gosaSharedFolderTarget']= array(); - $this->cleanup(); - $this->mailMethod->fixAttributesOnRemove(); - + $this->cleanup(); $ldap = $this->config->get_ldap_link(); $ldap->cd($this->dn); $ldap->modify ($this->attrs); @@ -669,13 +669,17 @@ class mailgroup extends plugin $ldap= $this->config->get_ldap_link(); /* If domain part was selectable, contruct mail address */ - if($this->mailMethod->domainSelectionEnabled() || $this->mailMethod->mailEqualsCN()){ - $this->mail = $this->mail."@".$this->mailDomainPart; + if(!(!$this->mailMethod->isModifyableMail() && $this->initially_was_account)){ + + if($this->mailMethod->domainSelectionEnabled() || $this->mailMethod->mailEqualsCN()){ + $this->mail = $this->mail."@".$this->mailDomainPart; + } } /* Enforce lowercase mail address and trim whitespaces */ $this->mail = trim(strtolower($this->mail)); + /* Create acls */ -- 2.30.2