X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_search.php;h=29ad63bbe4e0641484aee3056a27625e03f2656c;hb=793ee86a81a9465cb8d942e92f1cc12e9d15b834;hp=52731ab615b056f737f34ca1cb13c65cc234aaec;hpb=9b761dbdd92259ef09affe9b8f8b62362d0d7bb2;p=squirrelmail.git diff --git a/functions/imap_search.php b/functions/imap_search.php index 52731ab6..29ad63bb 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -3,14 +3,19 @@ /** * imap_search.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2004 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * IMAP search routines * - * $Id$ + * @version $Id$ + * @package squirrelmail + * @subpackage imap + * @deprecated This search interface has been largely replaced by asearch */ +/** + * Load up a bunch of SM functions */ require_once(SM_PATH . 'functions/imap.php'); require_once(SM_PATH . 'functions/date.php'); require_once(SM_PATH . 'functions/mailbox_display.php'); @@ -20,7 +25,7 @@ function sqimap_search($imapConnection, $search_where, $search_what, $mailbox, $color, $search_position = '', $search_all, $count_all) { global $message_highlight_list, $squirrelmail_language, $languages, - $index_order, $pos, $allow_charset_search, $uid_support, + $index_order, $pos, $allow_charset_search, $imap_server_type; $pos = $search_position; @@ -73,7 +78,7 @@ function sqimap_search($imapConnection, $search_where, $search_what, $mailbox, } /* read data back from IMAP */ - $readin = sqimap_run_command($imapConnection, $ss, false, $result, $message, $uid_support); + $readin = sqimap_run_command($imapConnection, $ss, false, $result, $message, TRUE); /* try US-ASCII charset if search fails */ if (isset($languages[$squirrelmail_language]['CHARSET'])