Code

Added new function get_sieve
[gosa.git] / include / sieve / class_sieveElement_Fileinto.inc
index e595250aa581d54d773a9f7391e7bdfd429fd396..16b8c26d735d4b240ca1fc7ad098e63876f90c32 100644 (file)
@@ -22,6 +22,11 @@ class sieve_fileinto
   function sieve_fileinto($data,$object_id)
   {
     $this->object_id = $object_id;
+
+    if($data == NULL){
+      $data = array('ELEMENTS' => array(array('class' => "quoted-string" ,"text" => _(""))));
+    }
+
     foreach($data['ELEMENTS'] as $node ){
       if(in_array($node['class'],array("quoted-string","text"))){
         $this->data[] = preg_replace("/\"/","",$node['text']);
@@ -53,6 +58,11 @@ class sieve_fileinto
     return($str);
   }
 
+  function check()
+  {
+    return(array());
+  }
+
   function get_mail_boxes()
   {
     return(array("not"=>"not","impplemented/yet"=>"impplemented/yet"));