-1,
'<b>' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . '</b></tr><tr>');
}
- echo "<b><big><center>$mailbox</center></big></b>";
+ echo "<b><big>Folder: $mailbox</big></b>";
while ($j < count($msgs)) {
printMessageInfo($imapConnection, $msgs[$j]["ID"], 0, $j, $mailbox, '', 0, $search_where, $search_what);
$j++;
displayPageHeader($color, $mailbox);
/* See how the page was called and fire off correct function */
-if ( !isset( $submit ) ) {
- $submit = '';
-} else if ($submit == 'Search' && !empty($what)) {
+//if ( !isset( $submit ) ) {
+// $submit = '';
+//} else if ($submit == 'Search' && !empty($what)) {
+if ((!isset($submit) || empty($submit)) && !empty($what)) {
+ $submit = 'Search';
+}
+if ($submit == 'Search' && !empty($what)) {
update_recent($what, $where, $mailbox, $username, $data_dir);
}
elseif ($submit == 'forget') {