浏览代码

fix for checking $MDNSent flag

stekkel 23 年之前
父节点
当前提交
843d3b03a4
共有 1 个文件被更改,包括 29 次插入2 次删除
  1. 29 2
      functions/mime.php

+ 29 - 2
functions/mime.php

@@ -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);