浏览代码

Priority stuff is not working properly. I've defaulted prioriy to normal
but it seems strange that:

$priority_level = substr($message->header->priority,0,1);

doesn't return a valid priority level.

philippe_mingo 23 年之前
父节点
当前提交
ff8391bb1a
共有 1 个文件被更改,包括 19 次插入10 次删除
  1. 19 10
      src/read_body.php

+ 19 - 10
src/read_body.php

@@ -419,16 +419,25 @@ if ($default_use_priority) {
     $priority_level = substr($message->header->priority,0,1);
 
     switch($priority_level) {
-        /* First, check for a higher then normal priority. */
-        case "1":
-        case "2": $priority_string = _("High"); break;
-
-        /* Second, check for a normal priority. */
-        case "3": $priority_string = _("Normal"); break;
-
-        /* Last, check for a lower then normal priority. */
-        case "4":
-        case "5": $priority_string = _("Low"); break;
+        /* 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;
+            
     }
 }