display status of message when reading it (deleted, answered, flagged etc)
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 7 Jan 2007 13:25:23 +0000 (13:25 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 7 Jan 2007 13:25:23 +0000 (13:25 +0000)
#1278696

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

src/read_body.php

index 44ae694..f35c80b 100644 (file)
@@ -399,8 +399,27 @@ function formatEnvheader($aMailbox, $passed_id, $passed_ent_id, $message,
             }
         }
     }
+
+    $statuses = array();
+    if ( $message->is_deleted ) {
+        $statuses[] = _("deleted");
+    }
+    if ( $message->is_answered ) {
+        $statuses[] = _("answered");
+    }
+    if ( $message->is_draft ) {
+        $statuses[] = _("draft");
+    }
+    if ( $message->is_flagged) {
+        $statuses[] = _("flagged");
+    }
+    if ( count($statuses) ) {
+        $env[_("Status")] = implode(', ', $statuses);
+    }
+    
     $env[_("Options")] = formatToolbar($mailbox, $passed_id, $passed_ent_id, $message, $color);
 
+
     $oTemplate->assign('headers_to_display', $env);
     
     $oTemplate->display('read_headers.tpl');