Add comment to parsePriority function. I had to duplicate this function in
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 6 Feb 2005 19:26:23 +0000 (19:26 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 6 Feb 2005 19:26:23 +0000 (19:26 +0000)
Rfc822Header.php AND imap_messages.php because both seem to do header parsing.

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

functions/imap_messages.php

index ebf6ad9..7f46148 100755 (executable)
@@ -479,6 +479,17 @@ function elapsedTime($start) {
 }
 
 
+/**
+ * Normalise the different Priority headers into a uniform value,
+ * namely that of the X-Priority header (1, 3, 5). Supports:
+ * Prioirty, X-Priority, Importance.
+ * X-MS-Mail-Priority is not parsed because it always coincides
+ * with one of the other headers.
+ *
+ * DUPLICATE CODE ALERT:
+ * NOTE: this is actually a duplicate from the function in
+ * class/mime/Rfc822Header.php.
+ */
 function parsePriority($value) {
     $value = strtolower(array_shift(split('/\w/',trim($value))));
     if ( is_numeric($value) ) {
@@ -972,4 +983,4 @@ function sqimap_get_small_header($imap_stream, $id, $sent) {
     return $res[0];
 }
 
-?>
\ No newline at end of file
+?>