Transmit sqimap_mailbox_select() result to mail_message_listing_beginning()
authoralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 3 May 2004 10:50:46 +0000 (10:50 +0000)
committeralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 3 May 2004 10:50:46 +0000 (10:50 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7348 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/search.php

index 5a5b7a92971149f27c5d13d3f4e248e8837e99b9..118098a5dfd4c911d444b3bd5814669b4f43c3c4 100644 (file)
@@ -800,7 +800,7 @@ function asearch_print_form_basic($imapConnection, &$boxes, $mailbox_array, $bio
 
 /** Print the $msgs messages from $mailbox mailbox
  */
-function asearch_print_mailbox_msgs($imapConnection, $mailbox, $msgs, $cnt, $sort, $color, $where, $what)
+function asearch_print_mailbox_msgs($imapConnection, $mbxresponse, $mailbox, $msgs, $cnt, $sort, $color, $where, $what)
 {
        if ($cnt > 0) {
                global $allow_server_sort, $allow_thread_sort, $thread_sort_messages;
@@ -834,7 +834,7 @@ function asearch_print_mailbox_msgs($imapConnection, $mailbox, $msgs, $cnt, $sor
 
                echo '<tr><td>';
                if ($devel)
-                       mail_message_listing_beginning($imapConnection, NULL, $mailbox, $real_sort, $msg_cnt_str, $mailbox_title, 1, 1);
+                       mail_message_listing_beginning($imapConnection, $mbxresponse, $mailbox, $real_sort, $msg_cnt_str, $mailbox_title, 1, 1);
                else
                        mail_message_listing_beginning($imapConnection, $mailbox, $real_sort, $msg_cnt_str, $mailbox_title, 1, 1);
                echo '</td></tr>';
@@ -1315,14 +1315,14 @@ if ($submit == $search_button_text) {
                else {
                        foreach($mboxes_msgs as $mailbox => $msgs) {
                                echo '<br>';
-                               sqimap_mailbox_select($imapConnection, $mailbox);
+                               $mbxresponse = sqimap_mailbox_select($imapConnection, $mailbox);
                                $msgs = fillMessageArray($imapConnection, $msgs, count($msgs));
 /* For now just keep the first criteria to make the regular search happy if the user tries to come back to search */
 /*                     $where = asearch_serialize($where_array);
                                $what = asearch_serialize($what_array);*/
                                $where = $where_array[0];
                                $what = $what_array[0];
-                               asearch_print_mailbox_msgs($imapConnection, $mailbox, $msgs, count($msgs), $sort, $color, urlencode($where), urlencode($what));
+                               asearch_print_mailbox_msgs($imapConnection, $mbxresponse, $mailbox, $msgs, count($msgs), $sort, $color, urlencode($where), urlencode($what));
                        }
                }