Code

Updated comment handling
[gosa.git] / include / sieve / class_sieveElement_Fileinto.inc
index 1c1707ef45d4b64bf7f36734bb2e305f00216d15..a62e8eeaf2c76cd8826b9969dd06f8ebba17cef6 100644 (file)
@@ -38,6 +38,7 @@ class sieve_fileinto
   {
     $this->object_id = $object_id;
     $this->parent = $parent;
+    $this->parent->add_require("fileinto");
 
     $mbs = $this->get_mail_boxes();
       
@@ -64,10 +65,10 @@ class sieve_fileinto
   function get_sieve_script_part()
   {
     $tmp = "";
-      $tmp.= "\"".$this->data."\", ";
+    $tmp.= "\"".$this->data."\", ";
     $tmp = preg_replace("/,$/","",trim($tmp));
     $tmp = preg_replace ("/\"\"/","\"",$tmp);
-    return("fileinto ".$tmp.";\n");
+    return("fileinto ".$tmp.";");
   } 
     
   function execute()