From 1c3d44129b83e4c50ae2ce3425c738130a82fad9 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 7 Jan 2007 13:25:23 +0000 Subject: [PATCH] display status of message when reading it (deleted, answered, flagged etc) #1278696 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12088 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/read_body.php b/src/read_body.php index 44ae6942..f35c80b9 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -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'); -- 2.25.1