[prev in list] [next in list] [prev in thread] [next in thread]
List: horde
Subject: Re: [horde] IMP Quota display
From: Michael M Slusarz <slusarz () horde ! org>
Date: 2013-09-30 21:13:11
Message-ID: 20130930151311.Horde.jh2shhA-VtXKsFE1AE1Pvw9 () bigworm ! curecanti ! org
[Download RAW message or body]
Quoting Pine A <pinemail11@gmail.com>:
> On Mon, Sep 23, 2013 at 11:50 PM, Michael M Slusarz <slusarz@horde.org>wrote:
>
>> Quoting Pine A <pinemail11@gmail.com>:
>>
>> I am trying to display quota on sidebar in imp.
>>>
>>> For this I am following code in imp/lib/dynamic/mailbox.php
>>>
>>> $sidebar->subinfo = $imp_imap->config->quota;
>>>
>>> For displaying in sidebar we are writing following code in
>>> templates/sidebar/sidebar.**html.php
>>>
>>> <?php echo $sidebar->subinfo ?>
>>>
>>
>> That's not going to do anything. $imp_imap->config->quota is nothing more
>> than the 'quota' config from imp/config/backends.php.
>>
>> To actually grab quota information from the IMAP server, you need to us
>> IMP_Quota_Ui (or directly call an IMP_Quota driver). See IMP_View_Subinfo
>> for an example.
>>
>> michael
>>
>> ______________________________**_____
>> Michael Slusarz [slusarz@horde.org]
>>
>> Hi Michael,
>
>
> You are right, look like it is for showing no of mails in folders.
>
> I am trying to display mailbox size quota.
Then you need to directly call the IMP_Quota driver to get this information.
http://dev.horde.org/api/master/app/imp/classes/IMP_Quota_Imap.html
michael
___________________________________
Michael Slusarz [slusarz@horde.org]
--
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic