Code

Remove only shared folder accounts,
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 Oct 2006 04:17:12 +0000 (04:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 Oct 2006 04:17:12 +0000 (04:17 +0000)
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

index 0cd0e15be64829935b1086e24253cfb146265ae5..0ab22b92f6f4849b6832c74fd8ae594a14a98271 100644 (file)
@@ -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: