}
}
-function filter_search_and_delete($imap, $where, $what, $where_to, $user_scan, $del_id)
-{
+function filter_search_and_delete($imap, $where, $what, $where_to, $user_scan, $del_id) {
global $languages, $squirrelmail_language, $allow_charset_search, $uid_support;
if ($user_scan == 'new') {
$category = 'UNSEEN';
}
/* read data back from IMAP */
- $read = sqimap_run_command($imap, $search_str, true, $reponse, $message, $uid_support);
+ $read = sqimap_run_command($imap, $search_str, true, $response, $message, $uid_support);
// This may have problems with EIMS due to it being goofy
if (sqimap_mailbox_exists($imap, $where_to)) {
for ($j=2; $j < count($ids); $j++) {
$id = trim($ids[$j]);
- $del_id[] = $id;
+ $del_id[] = $id;
sqimap_messages_copy ($imap, $id, $id, $where_to);
sqimap_messages_flag ($imap, $id, $id, 'Deleted',false);
}