From: stekkel Date: Mon, 22 Jul 2002 19:25:55 +0000 (+0000) Subject: moved check for issent to mailbox_display where it belongs X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b92977f5a394800c1300ae8ac41cbabff530dd2b;p=squirrelmail.git moved check for issent to mailbox_display where it belongs git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3119 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 2f3ffe66..8e8a41f0 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -386,7 +386,7 @@ function elapsedTime($start) { return $timepassed; } -function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) { +function sqimap_get_small_header_list ($imap_stream, $msg_list) { global $squirrelmail_language, $color, $data_dir, $username, $imap_server_type; global $uid_support; @@ -593,12 +593,8 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) { } } + $header = new small_header; - if ($issent) { - $header->from = (trim($to) != '' ? $to : '(' ._("No To Address") . ')'); - } else { - $header->from = $from; - } if ($uid_support) { $header->uid = $unique_id; @@ -608,6 +604,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) { $header->date = $date; $header->subject = $subject; $header->to = $to; + $header->from = $from; $header->priority = $priority; $header->message_id = $messageid; $header->cc = $cc;