Re: imap4 search criteria

From: Date: Mon, 01 Feb 2010 15:06:03 +0000
Subject: Re: imap4 search criteria
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-46924@lists.php.net to get a copy of this message
Thanks a lot for your reply. I also found a second bug report related to this: http://bugs.php.net/bug.php?id=21168 Now, how about adding an imap_newsearchpgm function to the PHP imap extension which would do a call to mail_nsewsearchpgm inside c-client and return a structure allowing to contruct IMAP4 search programs (SEARCHPGM inside c-client) ? Anyone interested in this ? Dominik On 2010-01-30, at 6:22 PM, Joey Smith wrote: > There's an open bug on this, #15238 (http://bugs.php.net/bug.php?id=15238&). I'm > sure patches would be welcomed. > > On Fri, Jan 29, 2010 at 03:49:18PM -0500, Dominik Gehl wrote: >> Hi, >> >> I noticed that the imap extension seems to support only IMAP2 search criteria. >> >> This is caused by the fact that in ext/imap/php_imap.c, the imap_search function uses a >> call to mail_criteria. And >> the University of Washington IMAP toolkit mentions in docs/internal.txt: >> >> SEARCHPGM *mail_criteria (char *criteria); >> criteria IMAP2-format search criteria string >> >> This function accepts an IMAP2-format search criteria string and >> parses it. If the parse is successful, it returns a search program >> suitable for use in mail_search_full(). >> WARNING: This function does not accept IMAP4 search criteria. >> >> >> Is there any specific reason why PHP uses this mail_criteria call ? It really would be nice >> to be able to use IMAP4 search criteria ! >> >> Thanks, >> Dominik >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>

« previous php.internals (#46924) next »