Claudio Saavedra wrote:
Hi

I'm writing part of a program that would generate a report of users
overquota in imap cyrus servers through sockets and using the protocol
specification (RFC2087).

The problem is that using a single command for each mailbox is too slow,
for instance, when connecting to a remote server every GETQUOTA
execution takes about 0.1 s. due to the connection delay and when its
needed to get the quota of 6000 mailboxes would be needed about 10
minutes to generate the report.

In contrast, when executing one single command like LIST to retrieve the
complete list of mailboxes, that delay of 0.1 s. it is not a problem.

Therefore, i wonder, exists some way to retrieve all the quotas of every
single mailbox, with just one command execution?

Nope, not unless you extend the GETQUOTA command to take a wildcard.

Have you tried pipelining the GETQUOTA commands so that you reduce the number of roundtrips?

--
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
----
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

Reply via email to