Code

Added mailServer Properties
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 07:10:09 +0000 (07:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 07:10:09 +0000 (07:10 +0000)
- postfixProtocols postfixRestrictionFilters are now valid properties

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

gosa-plugins/mail/admin/systems/services/mail/class_goMailServer.inc

index 3f88d894da2c113cebfebc258fe00228135f647e..4e221de2d9a96edece8c640333ff8992f84dfc1b 100644 (file)
@@ -52,12 +52,15 @@ class goMailServer extends goService{
     $str = $this->config->data['TABS']['SERVERSERVICE'];
     $this->TransportProtocols =array("smtp"=>"SMTP");
     $this->RestrictionFilters = array("FILTER"=>"FILTER"); 
-    foreach(array("POSTFIXRESTRICTIONFILTERS"=>"RestrictionFilters",
-          "POSTFIXPROTOCOLS"        =>"TransportProtocols") as $file => $var){
-      if($this->config->get_cfg_value("core",$file) != ""){
-        $file = $this->config->get_cfg_value("core",$file);
-        if((isset($file)) && is_readable($file)){
-          $tmp = file_get_contents($file);
+    foreach(
+            array(
+                "postfixRestrictionFilters"=>"RestrictionFilters",
+                "postfixProtocols"        =>"TransportProtocols")
+            as $file => $var){
+        if($this->config->get_cfg_value("goMailServer",$file) != ""){
+            $file = $this->config->get_cfg_value("goMailServer",$file);
+            if((isset($file)) && is_readable($file)){
+                $tmp = file_get_contents($file);
           $tmp2= preg_split("/\n/",$tmp);
           foreach($tmp2 as $entry){
             if(empty($entry)) continue;
@@ -578,6 +581,36 @@ class goMailServer extends goService{
           "plSection"     => array("administration"),
           "plCategory"    => array("server"),
 
+          "plProperties"  => array(
+              array(
+                  "name"          => "postfixProtocols",
+                  "type"          => "file",
+                  "default"       => "",
+                  "description"   => _("The 'postfixProtocols' statement defines a file to include for the postfix module in order to display user defined protocols.")."
+
+File syntax:
+    name1:Description1
+    name2:Description2",
+
+                  "check"         => "gosaProperty::isReadableFile",
+                  "migrate"       => "",
+                  "group"         => "mail",
+                  "mandatory"     => FALSE),
+              array(
+                  "name"          => "postfixRestrictionFilters",
+                  "type"          => "file",
+                  "default"       => "",
+                  "description"   => _("The 'postfixRestrictionFilters' statement defines a file to include for the postfix module in order to display user defined restriction filters.")."
+
+File syntax:
+    name1:Description1
+    name2:Description2",
+                  "check"         => "gosaProperty::isReadableFile",
+                  "migrate"       => "",
+                  "group"         => "mail",
+                  "mandatory"     => FALSE),
+              ),
+
           "plProvidedAcls"=> array(
 
             "start"           => _("Start"),