From 4dfc2b514b0f02c1762904e97bb07602c60ef7c9 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 23 Oct 2006 04:18:00 +0000 Subject: [PATCH] Remove shared folders via imap_delete. KolabD is currently not able to remove shared folder accouts. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4916 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_mail-methods-kolab.inc | 10 ++++++++++ plugins/personal/mail/class_mailAccount.inc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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: diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index b8c78b802..fd2d0ceee 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -43,7 +43,7 @@ class mailAccount extends plugin var $quotaUsage = 0; var $forward_dialog = FALSE; var $folder_prefix = ""; - var $mailboxList = array(); + var $mailboxList = array("INBOX"); var $default_permissions = "none"; var $member_permissions = "post"; var $members = array(); -- 2.30.2