Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13361 invoked from network); 30 Jan 2010 23:22:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2010 23:22:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=joey@joeysmith.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=joey@joeysmith.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain joeysmith.com designates 209.90.98.146 as permitted sender) X-PHP-List-Original-Sender: joey@joeysmith.com X-Host-Fingerprint: 209.90.98.146 host-3.pl1071314.fiber.net Received: from [209.90.98.146] ([209.90.98.146:50321] helo=joeysmith.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/10-12356-42FB46B4 for ; Sat, 30 Jan 2010 18:22:13 -0500 Received: from joey by joeysmith.com with local (Exim 4.69) (envelope-from ) id 1NbMe0-0004hL-4j; Sat, 30 Jan 2010 16:22:24 -0700 Date: Sat, 30 Jan 2010 16:22:24 -0700 To: Dominik Gehl Cc: internals@lists.php.net Message-ID: <20100130232224.GA18033@joeysmith.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [PHP-DEV] imap4 search criteria From: joey@joeysmith.com (Joey Smith) 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 >