Browse Source

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 years ago
parent
commit
ff8391bb1a
1 changed files with 19 additions and 10 deletions
  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;
+            
     }
 }