[horde] IMP Quota display

Michael M Slusarz slusarz at horde.org
Mon Sep 23 18:20:07 UTC 2013


Quoting Pine A <pinemail11 at 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 at horde.org]



More information about the horde mailing list