From ca6e7f053bbd00316c35105b1a8c50789a69f9ab Mon Sep 17 00:00:00 2001 From: porco Date: Thu, 10 Jan 2002 14:06:49 +0000 Subject: [PATCH] Cleaning code, as Philippe told me. Forgot the ChangeLog. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2111 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + functions/mailbox_display.php | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05358b6d..f4fee8e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ Version 1.2.3 -- ?? - Fixed 'sticky priority' so that replies are set to the same priority as the original message. - Fixed Printer Friendly to print HTML messages. + - Fixed multiple receivers in Sent mailbox (#500910). - Disabled prefs caching under PHP 4.1 - Added "Search Memory". Enabling to store up to 9 predefined searchs. diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 1fdcc78c..b88e1f72 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -41,11 +41,12 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start * because you can have multi receiver. */ $sendersName = split(',', $msg['FROM']); - for( $index = 0 ; $index < count($sendersName) ; $index++ ) { - if( strlen($senderName) > 0 ) + for ($index = 0 ; $index < count($sendersName) ; $index++) { + if (strlen($senderName) > 0) { $senderName .= ', '; - $senderName .= sqimap_find_displayable_name($sendersName[$index]); } + $senderName .= sqimap_find_displayable_name($sendersName[$index]); + } if( $mailbox == 'None' ) { // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); -- 2.25.1