Priority stuff is not working properly. I've defaulted prioriy to normal
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 10 Jan 2002 15:17:50 +0000 (15:17 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 10 Jan 2002 15:17:50 +0000 (15:17 +0000)
but it seems strange that:

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

doesn't return a valid priority level.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2112 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index bf3ce39..5ae9b03 100644 (file)
@@ -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;
+            
     }
 }