[imp] Suggestion...

ANANT S ATHAVALE asa at isac.gov.in
Thu Jan 30 03:13:29 UTC 2014


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

> Quoting ANANT S ATHAVALE <asa at isac.gov.in>:
>
>> ----- Message from Michael M Slusarz <slusarz at horde.org> ---------
>>    Date: Fri, 24 Jan 2014 12:23:52 -0700
>>    From: Michael M Slusarz <slusarz at horde.org>
>> Subject: Re: [imp] Suggestion...
>>      To: imp at lists.horde.org
>>
>>> Quoting ANANT S ATHAVALE <asa at 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 [slusarz at horde.org]
>>>
>>> --
>>> imp mailing list
>>> Frequently Asked Questions: http://wiki.horde.org/FAQTo unsubscribe,
>>> mail: imp-unsubscribe at lists.horde.org
>>
>> ----- End message from Michael M Slusarz <slusarz at 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 [slusarz at horde.org]
>
> --
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQTo unsubscribe,
> mail: imp-unsubscribe at lists.horde.org

----- End message from Michael M Slusarz <slusarz at 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.
------------------------------------------------------------------------------



More information about the imp mailing list