- if (!isset ($msg)) { $msg = ""; }
-
- mail_message_listing_beginning( $imapConnection,
- "move_messages.php?msg=$msg&mailbox=$urlMailbox&where=" . urlencode($search_where) . "&what=".urlencode($search_what),
- $mailbox,
- -1,
- '<b>' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . '</b>',
- get_selectall_link($start_msg, $sort) );
-
-
+ if (!isset ($msg)) {
+ $msg = '';
+ }
+ if ($search_all != 'all') {
+ if ( !isset( $start_msg ) ) {
+ $start_msg =0;
+ }
+ if ( !isset( $sort ) ) {
+ $sort = 0;
+ }
+ mail_message_listing_beginning( $imapConnection,
+ "move_messages.php?msg=$msg&mailbox=$urlMailbox&pos=$pos&where=" . urlencode($search_where) . "&what=".urlencode($search_what),
+ $mailbox,
+ -1,
+ '<b>' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . '</b></tr><tr>'.
+ get_selectall_link($start_msg, $sort));
+ }
+ else {
+ mail_message_listing_beginning( $imapConnection,
+ "move_messages.php?msg=$msg&mailbox=$urlMailbox&pos=$pos&where=" . urlencode($search_where) . "&what=".urlencode($search_what),
+ $mailbox,
+ -1,
+ '<b>' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . '</b></tr><tr>');
+ }
+ if ( $mailbox == 'INBOX' ) {
+ $showbox = _("INBOX");
+ } else {
+ $showbox = $mailbox;
+ }
+ echo '<b><big>' . _("Folder:") . " $showbox</big></b>";