Jelajahi Sumber

Cleaning code, as Philippe told me.
Forgot the ChangeLog.

porco 23 tahun lalu
induk
melakukan
588ccb8dfe
2 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 1 0
      ChangeLog
  2. 4 3
      functions/mailbox_display.php

+ 1 - 0
ChangeLog

@@ -7,6 +7,7 @@ Version 1.2.3 -- ??
   - Fixed 'sticky priority' so that replies are set to the same
   - Fixed 'sticky priority' so that replies are set to the same
     priority as the original message.
     priority as the original message.
   - Fixed Printer Friendly to print HTML messages.
   - Fixed Printer Friendly to print HTML messages.
+  - Fixed multiple receivers in Sent mailbox (#500910).
   - Disabled prefs caching under PHP 4.1
   - Disabled prefs caching under PHP 4.1
   - Added "Search Memory". Enabling to store up to
   - Added "Search Memory". Enabling to store up to
     9 predefined searchs.
     9 predefined searchs.

+ 4 - 3
functions/mailbox_display.php

@@ -41,11 +41,12 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start
      * because you can have multi receiver.
      * because you can have multi receiver.
      */
      */
     $sendersName = split(',', $msg['FROM']);
     $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 .= ', ';
-        $senderName .= sqimap_find_displayable_name($sendersName[$index]);
         }
         }
+        $senderName .= sqimap_find_displayable_name($sendersName[$index]);
+    }
 
 
     if( $mailbox == 'None' ) {
     if( $mailbox == 'None' ) {
         // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
         // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);