Re: imap quota broken

From: Date: Thu, 01 Aug 2002 00:08:13 +0000
Subject: Re: imap quota broken
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-86398@lists.php.net to get a copy of this message
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

« previous php.dev (#86398) next »