raw access to imap quotas, with mail user

Michael Loftis mloftis at wgops.com
Sun Sep 19 23:33:54 EDT 2004



--On Sunday, September 19, 2004 21:10 -0300 Felix Cuello <felix at qodiga.com> 
wrote:

> On Sun, Sep 19, 2004 at 09:55:45PM -0500, Edward Rudd wrote:
>> What's wrong with just making an imap connect to ask for the quota root?
>> (you don't have to run cyradm to check quatas..)
> Is to slow to do that in every page viewed by users [login with ldap
> access, then check imap quota]. Because the requirement is "Show Mailbox
> Usage on everypage"... then i was using IMAP::Admin but i want to do that
> faster... then i wrote a simple C code to read user quota without IMAP
> access.
>
> That's all... but mail users don't have read access to /var/imap/quota.

Read it once, and then cache the result in the session information (or even 
in a cookie) along with a 'freshness' -- and when the timeout has expired, 
re-check it (say 1 minute, or five).  Same thing with the LDAP auth. 
Re-authing every single page load is not necessary.

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list