From 76ff5b21dcf30b36e51bc5bd770ab2a8192129f9 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 18 May 2007 10:53:51 +0000 Subject: [PATCH] FirstTimeSee is useful to other functionalities beside MDN git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12414 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/read_body.php b/src/read_body.php index 36e3ab2b..41973190 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -384,7 +384,6 @@ function formatEnvheader($aMailbox, $passed_id, $passed_ent_id, $message, $mdn_url = set_url_var($mdn_url, 'sendreceipt', 1); $oTemplate->assign('read_receipt_sent', $message->is_mdnsent); - $oTemplate->assign('first_time_reading', $FirstTimeSee); $oTemplate->assign('send_receipt_href', $mdn_url); $env[_("Read Receipt")] = $oTemplate->fetch('read_handle_receipt.tpl'); @@ -392,6 +391,9 @@ function formatEnvheader($aMailbox, $passed_id, $passed_ent_id, $message, } } + // this is used for both mdn and also general use for plugins, etc + $oTemplate->assign('first_time_reading', $FirstTimeSee); + $statuses = array(); if (isset($aMailbox['MSG_HEADERS'][$passed_id]['FLAGS'])) { if (isset($aMailbox['MSG_HEADERS'][$passed_id]['FLAGS']['\\deleted']) && -- 2.25.1