Re: imap quota broken
| From: | Dan Kalowsky | Date: | Thu, 01 Aug 2002 13:17:48 +0000 |
| Subject: | Re: imap quota broken | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86417@lists.php.net to get a copy of this message | ||
Jan it is possible to put a fix in to keep some backwards compatibility.
I thought about this last night, and I will try to implement it today. If
you would test it later today that would be nice. This solution does
pollute the array, but it will make old scripts work a bit better.
On Thu, 1 Aug 2002, Jan Schneider wrote:
> OK, thanks for making that clear.
>
> Zitat von Dan Kalowsky <dank@deadmime.org>:
>
> > Yes it did. Mainly because the old compatibility was wrong.
> >
> > In the case when a server would respond with multiple resources like so:
> >
> > C: A003 GETQUOTA ""
> > S: * QUOTA "" (STORAGE 10 512 MESSAGE 5 256)
> >
> > The imap_get_quota() function would set the usage and limit values to
> > that
> > of the last resource. If there is more than one resource, the last value
> > is NEVER the STORAGE value. The current functionality reflects the
> > proper
> > usage and limit values for all resources, and conforms to RFC 2087.
> >
> > On Thu, 1 Aug 2002, Jan Schneider wrote:
> >
> > > One of the lasts commits to the imap quota functions broke backward
> > > compatibility with the old imap_get_quota() behaviour.
> > >
> > > It used to return an array like:
> > > array ( 'usage' => 83090, 'limit' => 100000, )
> > > but now returns an array like:
> > > array ( 'STORAGE' => array ( 'usage' => 83090,
> > > 'limit' => 100000, ), )
>
> Jan.
>
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
>
>---------------------------------------------------------------<
Dan Kalowsky "A little less conversation,
http://www.deadmime.org/~dank a little more
action."
dank-nos@mpa-deadmime.org - "A Little Less Conversation",
kalowsky@php.net Elvis Presley