extra function for getting the disposition properties
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 19 Aug 2002 09:57:03 +0000 (09:57 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 19 Aug 2002 09:57:03 +0000 (09:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3358 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

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