From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 8.0
PHP version:      4.3.0RC4
PHP Bug Type:     IMAP related
Bug description:  imap_search() does not support the OR keyword

I sent this to Dan in August and haven't seen anything done about it yet,
so I will put it here.  Note that the c-client DOES support the OR keyword
(see the MARC article listed below) - it appears that PHP is not
configuring the search correctly to use the keyword though.

-----

Quoting Dan Kalowsky <[EMAIL PROTECTED]>:

| Hi there,
| 
| Jon Pairse has given me your email regarding a commit you did on the
IMP
| project for HORDE.  Not being very familiar with IMP, any chance you
can
| give me a sample piece of PHP code for what doesn't work with the
| imap_search() function in PHP?
| 
| I'll see if I can get that fixed for 4.3.0

For imap_search() code, go to:
http://cvs.horde.org/co.php/imp/lib/Filter.php?login=2&r=1.20

The code is in the _matchFilter() method.  It generates a search query
that 
looks like the following:

UNDELETED OR FIELD1 "FOOBAR1" OR FIELD2 "FOOBAR2" FIELD3 "FOOBAR3"

Running this query directly on my imap installation (courier-imap 1.5), it

correctly does an OR search on FIELD1, FIELD2, FIELD3.  This search
returns 
no results in PHP on the same mailbox.

My lame attempt to figure out the problem can be found here:
http://marc.theaimsgroup.com/?l=imp&m=102832554619977&w=2

-----
-- 
Edit bug report at http://bugs.php.net/?id=21168&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21168&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21168&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21168&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21168&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21168&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21168&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21168&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21168&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21168&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21168&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21168&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21168&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21168&r=isapi

Reply via email to