Code

Added lowercase mail
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Mar 2006 07:59:05 +0000 (07:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Mar 2006 07:59:05 +0000 (07:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2875 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/mail/class_mailAccount.inc

index 13256a3cf56ddcb7a858c82e0b653cd5a9f7bbe4..3273d571155e0fe201c5188527595fe041284ed6 100644 (file)
@@ -660,6 +660,8 @@ $ldap->modify ($this->attrs);
       unset($this->attrs['gosaSpamMailbox']);
     }
 
+    $this->attrs['mail'] = strtolower($this->attrs['mail']); 
+
     /* Save data to LDAP */
     $ldap->cd($this->dn);
     $this->cleanup();
@@ -726,7 +728,6 @@ $ldap->modify ($this->attrs);
       }
     }
     $ldap->cd($this->config->current['BASE']);
-    echo "(&(!(objectClass=gosaUserTemplate))(objectClass=gosaMailAccount)(|(mail=".$this->mail.")(gosaMailAlternateAddress=".$this->mail."))(!   (uid=".$this->uid."))(!(cn=".$this->uid.")))";
     $ldap->search ("(&(!(objectClass=gosaUserTemplate))(objectClass=gosaMailAccount)(|(mail=".$this->mail.")(gosaMailAlternateAddress=".$this->mail."))(!(uid=".$this->uid."))(!(cn=".$this->uid.")))", array("uid"));
     if ($ldap->count() != 0){
       $message[]= _("The primary address you've entered is already in use.");