From: hickert Date: Mon, 23 Oct 2006 04:17:12 +0000 (+0000) Subject: Remove only shared folder accounts, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f3158dad8e11f04ed3d94dc478fd16bcf86b03d;p=gosa.git Remove only shared folder accounts, user accounts will be deleted by kolabd git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4915 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index 0cd0e15be..0ab22b92f 100644 --- a/include/class_mail-methods-kolab.inc +++ b/include/class_mail-methods-kolab.inc @@ -246,6 +246,16 @@ class mailMethodKolab extends mailMethodCyrus } } + + function deleteMailbox($folder) + { + /* Remove shared folders and skip removing users. + KolabD is not able to remove shared folders yet, so we do it instead */ + if(preg_match("/^shared/",$folder)){ + return mailMethodCyrus::deleteMailbox($folder); + } + return (TRUE); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: