From a284b438f36b9f26d68c61257db50426c1c0fa47 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 May 2012 12:57:00 +0000 Subject: [PATCH] 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 --- .../mail/personal/mail/class_mail-methods-cyrus.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; -- 2.30.2