From: hickert Date: Tue, 8 May 2012 12:57:00 +0000 (+0000) Subject: Fixed problems with mail folder retrieval while dot separated account ids were used X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=refs%2Fheads%2F2.6;p=gosa.git Fixed problems with mail folder retrieval while dot separated account ids were used git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@21153 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc index 0df2c97c4..eda18ab9a 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc @@ -321,10 +321,18 @@ class mailMethodCyrus extends mailMethod{ And prepare replacements */ if(preg_match("/\@/",$this->account_id)){ - $search = preg_replace("/\@/","/*@",$this->account_id); + if($this->cyrusUseSlashes){ + $search = preg_replace("/\@/","/*@",$this->account_id); + }else{ + $search = preg_replace("/\@/",".*@",$this->account_id); + } $with_domain = TRUE; }else{ - $search = $this->account_id."/*"; + if($this->cyrusUseSlashes){ + $search = $this->account_id."/*"; + }else{ + $search = $this->account_id.".*"; + } $with_domain = FALSE; } $folder = $this->account_id;