X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ffilters%2Ffilters.php;h=3c80671e65a33d8337c9c6ce1e6ca440c39c0571;hb=174523e3a1dc61d86e1ab04776665b731a375b8f;hp=fdc7fd8021015af11ab9fe6e5bf8c54c4e98869a;hpb=91e0dccca7b2452d8b450791cae3aa4125e8889e;p=squirrelmail.git diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index fdc7fd80..3c80671e 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -19,7 +19,7 @@ * Also view plugins/README.plugins for more information. * * @version $Id$ - * @copyright (c) 1999-2004 The SquirrelMail Project Team + * @copyright (c) 1999-2005 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @package plugins * @subpackage filters @@ -210,6 +210,11 @@ function filter_search_and_delete($imap_stream, $where, $what, $where_to, $user_ $should_expunge) { global $languages, $squirrelmail_language, $allow_charset_search, $imap_server_type; + if (strtolower($where_to) == 'inbox') { + return array(); + } + + if ($user_scan == 'new') { $category = 'UNSEEN'; } else { @@ -231,7 +236,8 @@ function filter_search_and_delete($imap_stream, $where, $what, $where_to, $user_ $what = addslashes(trim($what[1])); } - if ($imap_server_type == 'macosx') { + // see comments in squirrelmail sqimap_search function + if ($imap_server_type == 'macosx' || $imap_server_type == 'hmailserver') { $search_str .= ' ' . $where . ' ' . $what; } else { $search_str .= ' ' . $where . ' {' . strlen($what) . "}\r\n" @@ -792,4 +798,4 @@ function do_error($string) { echo $string; echo "

\n"; } -?> \ No newline at end of file +?>