From f792c641dae98980288cd24a6bbc9119ce214294 Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 25 Jul 2002 17:43:39 +0000 Subject: [PATCH] fix for checking $MDNSent flag git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3131 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index e8b7664..e7370aa 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -57,8 +57,8 @@ function mime_structure ($bodystructure, $flags=array()) { } break; case 'M': - if (strtolower($flag) == '\$mdnsent') { - $msg->is_mdn = true; + if (strtolower($flag) == '$mdnsent') { + $msg->is_mdnsent = true; } break; default: @@ -211,6 +211,33 @@ function listEntities ($message) { } } +function getPriorityStr($priority) { + $priority_level = substr($priority,0,1); + + switch($priority_level) { + /* 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; + + } + return $priority_string; +} + /* returns a $message object for a particular entity id */ function getEntity ($message, $ent_id) { return $message->getEntity($ent_id); -- 1.9.1