fix for checking $MDNSent flag
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 25 Jul 2002 17:43:39 +0000 (17:43 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 25 Jul 2002 17:43:39 +0000 (17:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3131 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index e8b7664f30fc0a2de88776af36e110f1b66a79cd..e7370aa7bc43bf42e5e6059403fab0a2b3713fc8 100644 (file)
@@ -57,8 +57,8 @@ function mime_structure ($bodystructure, $flags=array()) {
               }
               break;
             case 'M':
-              if (strtolower($flag) == '\$mdnsent') {
-                 $msg->is_mdn = true;
+              if (strtolower($flag) == '$mdnsent') {
+                 $msg->is_mdnsent = true;
               }
               break;
             default:
@@ -211,6 +211,33 @@ function listEntities ($message) {
   } 
 }
 
+function getPriorityStr($priority) {
+   $priority_level = substr($priority,0,1);
+
+   switch($priority_level) {
+     /* check for a higher then normal priority. */
+     case '1':
+     case '2':
+        $priority_string = _("High");
+        break;
+
+      /* check for a lower then normal priority. */
+     case '4':
+     case '5':
+        $priority_string = _("Low");
+        break;
+
+     /* check for a normal priority. */
+     case '3':
+     default:
+        $priority_level = '3';
+        $priority_string = _("Normal");
+        break;
+
+   }
+   return $priority_string;
+}
+
 /* returns a $message object for a particular entity id */
 function getEntity ($message, $ent_id) {
     return $message->getEntity($ent_id);