----- Message from Michael M Slusarz <slus...@horde.org> ---------
   Date: Wed, 29 Jan 2014 17:01:09 -0700
   From: Michael M Slusarz <slus...@horde.org>
Subject: Re: [imp] Suggestion...
     To: imp@lists.horde.org

Quoting ANANT S ATHAVALE <a...@isac.gov.in>:

----- Message from Michael M Slusarz <slus...@horde.org> ---------
   Date: Fri, 24 Jan 2014 12:23:52 -0700
   From: Michael M Slusarz <slus...@horde.org>
Subject: Re: [imp] Suggestion...
     To: imp@lists.horde.org

Quoting ANANT S ATHAVALE <a...@isac.gov.in>:

Dear List,

Our users prefer the quota display to be in the format of ('actual
usage
size' of 'quota') and in bracket percentage (the way it was in Horde
3.

For example, 800 of 1024 MB (80%). 

If you suggest me alone to change the code, where should I modify?

The undocumented 'format' quota parameter in backends.php.  See
IMP_Quota#__construct() for the default values/examples.

michael

___________________________________
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQTo unsubscribe,
mail: imp-unsubscr...@lists.horde.org

----- End message from Michael M Slusarz <slus...@horde.org> -----

I am unable to find the format for 'long' in construct() function. short
works but has only 2 parameters. percent and limit.  Is long not
implemented in the code?

Why do you need 'long'?  Especially since it wouldn't be used anywhere
in the code?

michael

___________________________________
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQTo unsubscribe,
mail: imp-unsubscr...@lists.horde.org

----- End message from Michael M Slusarz <slus...@horde.org> -----

I want long format as it supports the quota format of  - usage in units /
limit in units (%usage).   I tried setting the following first,

'quota' => array(
        'driver' => 'imap',
        'params' => array(
            'hide_when_unlimited' => true,
            'unit' => 'MB',
            'format' => array('long' => 'Quota Status: %.2f /
%.2f (%s%%)') ,
        )
    ),

and also tried with short.  The output is not as expected.  It still
shows % usage first.
--
          Regards
           Anant
------------------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
------------------------------------------------------------------------------

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to