Cleaning code, as Philippe told me.
authorporco <porco@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 10 Jan 2002 14:06:49 +0000 (14:06 +0000)
committerporco <porco@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 10 Jan 2002 14:06:49 +0000 (14:06 +0000)
Forgot the ChangeLog.

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

ChangeLog
functions/mailbox_display.php

index 05358b6..f4fee8e 100644 (file)
--- 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.
index 1fdcc78..b88e1f7 100644 (file)
@@ -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);