[dev] Patch for extended search on imap search

Michael M Slusarz slusarz at bigworm.colorado.edu
Mon Jun 16 13:44:30 PDT 2003


Quoting Dan Wilson <dan at acucore.com>:

| 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.

No, the problem was that the indices from the _searchPHP() command were
being ORed with the existing indices instead of ANDed.  This should be
fixed in CVS now.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list