From 1f3158dad8e11f04ed3d94dc478fd16bcf86b03d Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 23 Oct 2006 04:17:12 +0000 Subject: [PATCH] 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 --- include/class_mail-methods-kolab.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: -- 2.30.2