Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46907 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3232 invoked from network); 29 Jan 2010 20:49:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2010 20:49:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=dominik@dokdok.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dominik@dokdok.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dokdok.com from 209.85.221.174 cause and error) X-PHP-List-Original-Sender: dominik@dokdok.com X-Host-Fingerprint: 209.85.221.174 mail-qy0-f174.google.com Received: from [209.85.221.174] ([209.85.221.174:47532] helo=mail-qy0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/13-33667-5D9436B4 for ; Fri, 29 Jan 2010 15:49:26 -0500 Received: by qyk4 with SMTP id 4so1102430qyk.7 for ; Fri, 29 Jan 2010 12:49:23 -0800 (PST) Received: by 10.224.66.30 with SMTP id l30mr602583qai.258.1264798163298; Fri, 29 Jan 2010 12:49:23 -0800 (PST) Received: from ?192.168.1.100? (modemcable144.86-58-74.mc.videotron.ca [74.58.86.144]) by mx.google.com with ESMTPS id 23sm1677126qyk.3.2010.01.29.12.49.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Jan 2010 12:49:22 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 29 Jan 2010 15:49:18 -0500 Message-ID: To: internals@lists.php.net Mime-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) Subject: imap4 search criteria From: dominik@dokdok.com (Dominik Gehl) 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