X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_asearch.php;h=8c0c26af7447a4ee13289187453a73d7a7a4f93f;hb=3e6ee6cac3f0661ac3d2ffc516bb5d3be5f8f14f;hp=0db279c0a298557219e86a1cd654a2b9db2a0b92;hpb=fdbadf1661698da8e1380d214de02df837c97b7d;p=squirrelmail.git diff --git a/functions/imap_asearch.php b/functions/imap_asearch.php index 0db279c0..8c0c26af 100644 --- a/functions/imap_asearch.php +++ b/functions/imap_asearch.php @@ -8,7 +8,7 @@ * Subfolder search idea from Patch #806075 by Thomas Pohl xraven at users.sourceforge.net. Thanks Thomas! * * @author Alex Lemaresquier - Brainstorm - * @copyright © 1999-2005 The SquirrelMail Project Team + * @copyright © 1999-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -19,8 +19,8 @@ /** This functionality requires the IMAP and date functions */ -require_once(SM_PATH . 'functions/imap_general.php'); -require_once(SM_PATH . 'functions/date.php'); +//require_once(SM_PATH . 'functions/imap_general.php'); +//require_once(SM_PATH . 'functions/date.php'); /** Set to TRUE to dump the IMAP dialogue * @global bool $imap_asearch_debug_dump @@ -313,12 +313,12 @@ function sqimap_run_search($imapConnection, $search_string, $search_charset) $query = 'SEARCH CHARSET "' . strtoupper($search_charset) . '" ' . $search_string; else $query = 'SEARCH ' . $search_string; - $readin = sqimap_run_command($imapConnection, $query, false, $response, $message, TRUE); + $readin = sqimap_run_command_list($imapConnection, $query, false, $response, $message, TRUE); /* 6.4.4 try US-ASCII charset if we tried an OPTIONAL [CHARSET] and received a tagged NO response (SHOULD be [BADCHARSET]) */ if (($search_charset != '') && (strtoupper($response) == 'NO')) { $query = 'SEARCH CHARSET US-ASCII ' . $search_string; - $readin = sqimap_run_command($imapConnection, $query, false, $response, $message, TRUE); + $readin = sqimap_run_command_list($imapConnection, $query, false, $response, $message, TRUE); } if (strtoupper($response) != 'OK') { sqimap_asearch_error_box($response, $query, $message); @@ -486,5 +486,3 @@ function sqimap_asearch($imapConnection, &$mailbox_array, &$biop_array, &$unop_a } return ($mbox_search); } - -?>