From ce20ea9260adccbf62ca895c7e372947c3007f21 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 25 Apr 2003 16:20:27 +0000 Subject: [PATCH] moved address-parsing to the displayable headers git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4814 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 5c9ab721..97f1418b 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -73,6 +73,8 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox, if (handleAsSent($mailbox)) { $msg['FROM'] = $msg['TO']; } + $msg['FROM'] = parseAddress($msg['FROM']); + /* * This is done in case you're looking into Sent folders, * because you can have multiple receivers. @@ -95,7 +97,7 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox, $msg['SUBJECT'] = decodeHeader($msg['SUBJECT']); $subject = processSubject($msg['SUBJECT'], $indent_array[$msg['ID']]); - + echo html_tag( 'tr','','','','VALIGN="top"') . "\n"; if (isset($msg['FLAG_FLAGGED']) && ($msg['FLAG_FLAGGED'] == true)) { @@ -137,6 +139,8 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox, * Who wrote this?! */ if (is_array($message_highlight_list) && count($message_highlight_list)) { + $msg['TO'] = parseAddress($msg['TO']); + $msg['CC'] = parseAddress($msg['CC']); foreach ($message_highlight_list as $message_highlight_list_part) { if (trim($message_highlight_list_part['value']) != '') { $high_val = strtolower($message_highlight_list_part['value']); -- 2.25.1