imap4 search criteria

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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dominik Gehl [ Fr, 29 Januar 2010 20:14 ] [ ID #2030542 ]

Re: imap4 search criteria

Hi,

> ...

You might have more joy with this on the php-dev list.

--
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 23rd January)
Lots of PHP and Javascript code - http://www.phpguru.org

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard [ Fr, 29 Januar 2010 21:36 ] [ ID #2030544 ]
PHP » gmane.comp.php.general » imap4 search criteria

Vorheriges Thema: Ideas please -- take query results --- output to image
Nächstes Thema: Sessions across subdomains