Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45861 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28158 invoked from network); 21 Oct 2009 21:07:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2009 21:07:06 -0000 Authentication-Results: pb1.pair.com header.from=nick@mailtrust.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nick@mailtrust.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mailtrust.com designates 207.97.245.123 as permitted sender) X-PHP-List-Original-Sender: nick@mailtrust.com X-Host-Fingerprint: 207.97.245.123 smtp123.iad.emailsrvr.com Linux 2.4/2.6 Received: from [207.97.245.123] ([207.97.245.123:45130] helo=smtp123.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/39-16396-9F77FDA4 for ; Wed, 21 Oct 2009 17:07:06 -0400 Received: from relay2.r2.iad.emailsrvr.com (localhost [127.0.0.1]) by relay2.r2.iad.emailsrvr.com (SMTP Server) with ESMTP id 5176044C24E; Wed, 21 Oct 2009 17:07:03 -0400 (EDT) Received: from dynamic5.wm-web.iad.mlsrvr.com (dynamic5.wm-web.iad.mlsrvr.com [192.168.2.146]) by relay2.r2.iad.emailsrvr.com (SMTP Server) with ESMTP id 3EA3544C0E2; Wed, 21 Oct 2009 17:07:03 -0400 (EDT) Received: from mailtrust.com (localhost [127.0.0.1]) by dynamic5.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 302E68D005E; Wed, 21 Oct 2009 17:07:03 -0400 (EDT) Received: by apps.rackspace.com (Authenticated sender: nick@mailtrust.com, from: nick@mailtrust.com) with HTTP; Wed, 21 Oct 2009 17:07:03 -0400 (EDT) Date: Wed, 21 Oct 2009 17:07:03 -0400 (EDT) To: "Pierre Joye" Cc: jani.taskinen@iki.fi, internals@lists.php.net, "Jake Levitt" MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable Importance: Normal X-Priority: 3 (Normal) X-Type: plain In-Reply-To: References: <1256076610.69357406@192.168.1.71> <4ADEB05D.6090403@iki.fi> <1256139443.104920304@192.168.1.202> <4ADF3A65.5030301@iki.fi> Message-ID: <1256159223.19522770@192.168.1.202> X-Mailer: webmail7.0b Subject: =?UTF-8?Q?Re:=20[PHP-DEV]=20Patch:=20Add=20INTERNALDATE=20to=20imap=5Fap?= =?UTF-8?Q?pend()?= From: nick@mailtrust.com ("Nick Fortenberry") =0A-----Original Message-----=0A>From: "Pierre Joye" = =0A>Sent: Wednesday, October 21, 2009 1:54pm=0A>To: jani.taskinen@iki.fi=0A= >Cc: "Nick Fortenberry" , internals@lists.php.net, "Jak= e Levitt" >=0A>Subject: Re: [PHP-DEV] Patch: Add= INTERNALDATE to imap_append()=0A>=0A>On Wed, Oct 21, 2009 at 6:44 PM, Jani= Taskinen wrote:=0A>> 1. Top-posting is considered e= vil.=0A>> 2. Look harder, timelib_* has several functions for this, be crea= tive..=0A>> 3. Tabs instead of spaces, NO C++ comments!=0A>=0A>4. point him= to the right function then.=0A>=0A>That would spare us time and bandwidth.= =0A>=0A>Cheers,=0A>-- =0A>Pierre=0A=0A=0AHey Guys,=0A=0AWe have been lookin= g through the timelib library and the only function that we found that woul= d do something similar to what we want is timelib_parse_from_format(). How= ever, this still will not work completely; it is not strict enough. Is the= re any particular reason that you don't want to use a regex? Using the reg= ex allows the function to make sure the internal date is in an imap date fo= rmat (date-time =3D DQUOTE date-day-fixed "-" date-month "-" date-year SP t= ime SP zone DQUOTE). We're not trying to convert invalid dates into the co= rrect format.=0A=0AThanks,=0ANick=0A=0A