Code

Added a kolab method that do not connect to imap.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 Aug 2011 11:29:22 +0000 (11:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 15 Aug 2011 11:29:22 +0000 (11:29 +0000)
For example, for migration purpose.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20965 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc
gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolabNoImap.inc [new file with mode: 0644]

index ec09821b9fcaec42652aa01b3eba718c422d675b..97d7985b4a2be0ef1e09dda9cd1b7cacbe441595 100644 (file)
@@ -221,7 +221,6 @@ class mailMethodKolab extends mailMethodCyrus
     }
   }
 
-
   public function setQuota($number)
   {
     mailMethod::setQuota($number);
@@ -254,7 +253,6 @@ class mailMethodKolab extends mailMethodCyrus
     return(TRUE);
   }
 
-
   public function allow_remove(&$reason)
   {
     if(isset($this->parent->attrs)){
diff --git a/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolabNoImap.inc b/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolabNoImap.inc
new file mode 100644 (file)
index 0000000..3e66dcf
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+
+class mailMethodKolabNoImap extends mailMethodKolab
+{
+    public function connect()
+    {
+        return(mailMethod::connect());
+    }
+
+    public function account_exists()
+    {
+        return(mailMethod::account_exists());
+    }
+
+    public function disconnect()
+    {
+        return(mailMethod::disconnect());
+    }
+
+    public function is_connected()
+    {
+        return(mailMethod::is_connected());
+    }
+
+    public function getQuotaUsage()
+    {
+        return(mailMethod::getQuotaUsage());
+    }
+
+    public function getQuota($quotaValue)
+    {
+        return(mailMethod::getQuota($quotaValue));
+    }
+
+    public function getMailboxList()
+    {
+        return(mailMethod::getMailboxList());
+    }
+
+    public function getFolderACLs($folder_acls)
+    {
+        return(mailMethod::getFolderACLs($folder_acls));
+    }
+
+    public function saveSieveSettings()
+    {
+        return(mailMethod::saveSieveSettings());
+    }
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>