Hi List,
 I want to display the quota of each mailbox when user login to webmail.
 I try to write a Perl script using Cyrus::IMAP::Admin module.It like
following..
----

#!/usr/bin/perl -w
use Cyrus::IMAP::Admin;
my $client=Cyrus::IMAP::Admin->new('www.server.com');
$client->authenticate(-authz=>'',
                        -user=>'cyrus',
                        -password=>'test',
                        -mechanism=>'PLAIN');
my $rc=$client->listquotaroot('[EMAIL PROTECTED]');
print "$rc\n";
-----
 I just got a result "2". But the result of running the command cyradm is
-----
www.server.com> lq [EMAIL PROTECTED]
 STORAGE 892/1024 (87.109375%)
-----
 Where is the problem ?  Please give me a hint.
 And ,I found the method that get the quota by inviting Cyrus::IMAP::Admin
module is very slowly.Someone have a nice solution ?

---
Kai



__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

Reply via email to