Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46924 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73827 invoked from network); 1 Feb 2010 15:06:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2010 15:06:09 -0000 Authentication-Results: pb1.pair.com header.from=dominik@dokdok.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dominik@dokdok.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dokdok.com from 209.85.221.181 cause and error) X-PHP-List-Original-Sender: dominik@dokdok.com X-Host-Fingerprint: 209.85.221.181 mail-qy0-f181.google.com Received: from [209.85.221.181] ([209.85.221.181:39383] helo=mail-qy0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/10-07621-0EDE66B4 for ; Mon, 01 Feb 2010 10:06:09 -0500 Received: by qyk11 with SMTP id 11so2486123qyk.16 for ; Mon, 01 Feb 2010 07:06:06 -0800 (PST) Received: by 10.224.78.23 with SMTP id i23mr2031405qak.28.1265036765826; Mon, 01 Feb 2010 07:06:05 -0800 (PST) Received: from ?172.16.10.132? ([38.108.74.28]) by mx.google.com with ESMTPS id 8sm17786143qwj.11.2010.02.01.07.06.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 01 Feb 2010 07:06:05 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: <20100130232224.GA18033@joeysmith.com> Date: Mon, 1 Feb 2010 10:06:03 -0500 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <75DD619F-181F-4299-B812-ADC963C78CE8@dokdok.com> References: <20100130232224.GA18033@joeysmith.com> To: Joey Smith X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] imap4 search criteria From: dominik@dokdok.com (Dominik Gehl) Thanks a lot for your reply. I also found a second bug report related to = this: http://bugs.php.net/bug.php?id=3D21168 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=3D15238&). I'm > sure patches would be welcomed. >=20 > On Fri, Jan 29, 2010 at 03:49:18PM -0500, Dominik Gehl wrote: >> Hi, >>=20 >> I noticed that the imap extension seems to support only IMAP2 search = criteria. >>=20 >> 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: >>=20 >> SEARCHPGM *mail_criteria (char *criteria); >> criteria IMAP2-format search criteria string >>=20 >> 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. >>=20 >>=20 >> 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 ! >>=20 >> Thanks, >> Dominik >>=20 >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>=20