Re: how to use cyradm in a not-so-interactive way?

2003-10-15 Thread Javier Cano Linares
Hi, Kai and people! Thanks a lot! Now it works. Just one more question. I read the API documentation for Cyrus::IMAP::Admin but I can not really understand how to set the mailbox quota. In the perl file Admin.pm you can see: =item setquota($mailbox,$resource,$quota[, ...]) Set quota on a

Re: how to use cyradm in a not-so-interactive way?

2003-10-15 Thread Javier Cano Linares
Hi, Kai and people! Thanks a lot! Now it works. Just one more question. I read the API documentation for Cyrus::IMAP::Admin but I can not really understand how to set the mailbox quota. In the perl file Admin.pm you can see: =item setquota($mailbox,$resource,$quota[, ...]) Set quota on a

Re: how to use cyradm in a not-so-interactive way?

2003-10-15 Thread Kai
Hi,Javier Cano I set mailbox's quota by the following script,maybe it's useful to you? my $rc=$client-setquota($mailbox,'STORAGE',$quota); Regards --- Kai __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

how to use cyradm in a not-so-interactive way?

2003-10-13 Thread Javier Cano Linares
Hi there! I am trying to automate some tasks in order to create new mail accounts... I am using Postfix, Cyrus-IMAP and MySQL. Maybe there is a quite obvious answer to this question but I have no idea about Perl... I would like to find a way to create users in a not-so-interactive way like

Re: how to use cyradm in a not-so-interactive way?

2003-10-13 Thread Kai
Hi Use the following scripts #!/usr/bin/perl use Cyrus::IMAP::Admin; my $client=Cyrus::IMAP::Admin-new('yourhost'); $client-authenticate(-authz='', -user='admin', -password='yourpasswordhere', -mechanism='PLAIN'); my