[dev] Patch for extended search on imap search
Dan Wilson
dan at acucore.com
Thu Jun 12 19:50:57 PDT 2003
My spam filter was matching to every email. I'm not sure if this is the right
way to fix this problem, but it works. I've attached a patch.
I think this is actually the improper fix. With some debugging, I found that
the Spam filter (which keys off of X-Spam-Status) was appending the 'ALL'
search flag to the $ob->fullquery (line 174 or lib/IMAP/Search.php). I have a
feeling that's not correct... but I'm not sure.
-Dan
-------------- next part --------------
Index: lib/IMAP/Search.php
===================================================================
RCS file: /repository/horde/lib/IMAP/Search.php,v
retrieving revision 1.14
diff -u -r1.14 Search.php
--- lib/IMAP/Search.php 12 Jun 2003 19:32:13 -0000 1.14
+++ lib/IMAP/Search.php 13 Jun 2003 02:36:15 -0000
@@ -184,6 +184,7 @@
/* Process extended searches. */
if (($extended = $query->extendedSearch())) {
+ $indices = array();
if (($result = $this->_searchPHP($extended, $query->flags(), $imap, $mbox))) {
$indices = array_unique($indices + $result);
}
More information about the dev
mailing list