From: hickert Date: Tue, 21 Mar 2006 07:59:05 +0000 (+0000) Subject: Added lowercase mail X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4976bbb6a064d9ec50235b00bf7a0531438a727a;p=gosa.git Added lowercase mail git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2875 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 13256a3cf..3273d5711 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -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.");