moved check for issent to mailbox_display where it belongs
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 22 Jul 2002 19:25:55 +0000 (19:25 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 22 Jul 2002 19:25:55 +0000 (19:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3119 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php

index 2f3ffe665a092ddb56eab977cdfc910cec5aab2d..8e8a41f0df4d4596d1233e3eeb3e496d9c2fff7b 100755 (executable)
@@ -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;