function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$color, $search_position = '', $search_all, $count_all) {
- global $msgs, $message_highlight_list, $squirrelmail_language, $languages, $index_order;
- global $pos;
+ global $msgs, $message_highlight_list, $squirrelmail_language, $languages, $index_order,
+ $pos;
$pos = $search_position;
$search_string = '';
$count = count($multi_search);
for ($x=0;$x<$count;$x++) {
- trim($multi_search[$x]);
+ trim($multi_search[$x]);
$search_string = $search_string . ' ' . $search_where . ' "' . $multi_search[$x] . '"';
}
}
$languages[$squirrelmail_language]['CHARSET']) {
$ss = "SEARCH CHARSET ".$languages[$squirrelmail_language]['CHARSET']." ALL $search_string";
} else {
- $ss .= "SEARCH ALL $search_string\"";
+ $ss .= "SEARCH ALL $search_string";
}
/* Read Data Back From IMAP */
$readin = sqimap_run_command ($imapConnection, $ss, true, $result, $message);