Re: Patch: Add INTERNALDATE to imap_ap pend()
| From: | Nick Fortenberry | Date: | Wed, 21 Oct 2009 21:07:03 +0000 |
| Subject: | Re: Patch: Add INTERNALDATE to imap_ap pend() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45861@lists.php.net to get a copy of this message | ||
-----Original Message-----
>From: "Pierre Joye" <pierre.php@gmail.com>
>Sent: Wednesday, October 21, 2009 1:54pm
>To: jani.taskinen@iki.fi
>Cc: "Nick Fortenberry" <nick@mailtrust.com>, internals@lists.php.net, "Jake
>Levitt" ><jake.levitt@mailtrust.com>
>Subject: Re: [PHP-DEV] Patch: Add INTERNALDATE to imap_append()
>
>On Wed, Oct 21, 2009 at 6:44 PM, Jani Taskinen <jani.taskinen@iki.fi> wrote:
>> 1. Top-posting is considered evil.
>> 2. Look harder, timelib_* has several functions for this, be creative..
>> 3. Tabs instead of spaces, NO C++ comments!
>
>4. point him to the right function then.
>
>That would spare us time and bandwidth.
>
>Cheers,
>--
>Pierre
Hey Guys,
We have been looking through the timelib library and the only function that we found that would do
something similar to what we want is timelib_parse_from_format(). However, this still will not work
completely; it is not strict enough. Is there any particular reason that you don't want to use
a regex? Using the regex allows the function to make sure the internal date is in an imap date
format (date-time = DQUOTE date-day-fixed "-" date-month "-" date-year SP time
SP zone DQUOTE). We're not trying to convert invalid dates into the correct format.
Thanks,
Nick