* $Id$
*/
+require_once('../functions/strings.php');
+
define('PG_SEL_MAX', 10); /* Default value for page_selector_max. */
function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start_msg, $where, $what) {
global $default_use_priority;
global $message_highlight_list;
global $index_order;
+ global $pos; /* Search postion (if any) */
$color_string = $color[4];
if ($GLOBALS['alt_index_colors']) {
}
$msg = $msgs[$key];
- $senderName = sqimap_find_displayable_name($msg['FROM']);
+ /**
+ * This is done in case you're looking into Sent folders,
+ * because you can have multi receiver.
+ */
+ $sendersName = split(',', $msg['FROM']);
+ $senderName = '';
+ for ($index = 0 ; $index < count($sendersName) ; $index++) {
+ if ($senderName != '') {
+ $senderName .= ', ';
+ }
+ $senderName .= sqimap_find_displayable_name($sendersName[$index]);
+ }
+
if( $mailbox == 'None' ) {
// $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
return ($handleAsSent_result);
}
-?>
\ No newline at end of file
+?>