extra function for getting the disposition properties
[squirrelmail.git] / class / mime.class.php
index fcf5d4e10dc0b92695f50874b2e84a2d645bd756..b4fa18e67e476ef121cd2576a7d3a5d11a26e96f 100644 (file)
@@ -848,6 +848,7 @@ class message
                 /* multipart properties */
                 $i++;
                 $res = $this->parseProperties($read,$i);
+
                 $arg_a[] = $res[0];
                 $i = $res[1];
                 $arg_no++;
@@ -1669,6 +1670,17 @@ class disposition
        $this->name = $name;
        $this->properties = array();
     }
+
+    function getProperty($par)
+    {
+        $value = strtolower($par);
+        if (isset($this->properties[$par]))
+       {
+           return $this->properties[$par];
+        }
+        return '';
+    }
+
 }
 
 class language