Code

removed defaults from get_cfg_value and added some missing properties.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 07:42:05 +0000 (07:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 07:42:05 +0000 (07:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18330 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/uw-imap/personal/mail/uw-imap/class_mail-methods-uwimap.inc

index d642974c1126aee9976e3727f14530c6f6fc7c8a..59542f4fd30ef780109cd61dcfb2d2f03eb58be2 100644 (file)
@@ -57,7 +57,7 @@ class mailMethodUwimap extends mailMethod{
 
     /* Check for required PROCMAIL_PATH configuration 
      */
-    if($this->config->get_cfg_value("core","procMailPath","") == ""){
+    if($this->config->get_cfg_value("mailMethodUwimap","procMailPath") == ""){
       msg_dialog::display(_("Configuration error"),msgPool::invalidConfigurationAttribute("procMailPath"), ERROR_DIALOG);
       $this->procmaildir = "";
     }else{
@@ -140,6 +140,26 @@ class mailMethodUwimap extends mailMethod{
     }
   }
 
+  static function plInfo()
+  {
+      return (
+              array(
+                  "plProperties"  => 
+                  array(
+                      array(
+                          "name"          => "procMailPath",
+                          "type"          => "path",
+                          "default"       => "",
+                          "description"   => "", 
+                          "check"         => "gosaProperty::isWriteablePath",
+                          "migrate"       => "",
+                          "group"         => "mail",
+                          "mandatory"     => FALSE
+                          )
+                      )
+                  )
+             );
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: