require_once('../src/validate.php');
require_once('../functions/imap.php');
require_once('../functions/imap_search.php');
-require_once('../functions/imap_utf7_decode_local.php');
+require_once('../functions/imap_mailbox.php');
require_once('../functions/array.php');
require_once('../functions/strings.php');
}
}
-function printSearchMessages($msgs,$mailbox, $cnt, $imapConnection, $usecache = false, $newsort = false) {
+function printSearchMessages($msgs,$mailbox, $cnt, $imapConnection, $where, $what, $usecache = false, $newsort = false) {
global $sort, $color;
$msort = calc_msort($msgs, $sort);
printHeader($mailbox, 6, $color, false);
displayMessageArray($imapConnection, $cnt, 1,
- $msort, $mailbox, $sort, $color, $cnt);
+ $msort, $mailbox, $sort, $color, $cnt, $where, $what);
mail_message_listing_end($cnt, '', $msg_cnt_str, $color);
}
$msgs = sqimap_search($imapConnection, $where, $what, $mailbox, $color, 0, $search_all, $count_all);
$count_all = count($msgs);
printSearchMessages($msgs, $mailbox, $count_all, $imapConnection,
- false, false);
+ $where, $what, false, false);
array_push($perbox_count, $count_all);
}
}
$msgs = sqimap_search($imapConnection, $where, $what, $mailbox, $color, 0, $search_all, $count_all);
if (count($msgs)) {
printSearchMessages($msgs, $mailbox, count($msgs), $imapConnection,
- false, false);
+ $where, $what, false, false);
} else {
echo '<br><center>' . _("No Messages Found") . '</center>';
}