From 9b935fea59803bf507130c9a520e5c1f235ff672 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 6 Feb 2005 19:26:23 +0000 Subject: [PATCH] Add comment to parsePriority function. I had to duplicate this function in 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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index ebf6ad91..7f461487 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -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 +?> -- 2.25.1