Remove quota using Cyrus::IMAP::Admin?

Sebastian Hagedorn Hagedorn at uni-koeln.de
Thu Jul 25 11:51:36 EDT 2013


Hi,

you can remove the quota for a mailbox with cyradm by setting the quota to 
none:

$ cyradm cyrus
Password:
server> sq user/xxx none
remove quota
server>

But when I try to do the same using Cyrus::IMAP::Admin I get an error, 
because a number is expected as argument. Is that a bug or a feature? 
Here's my code:

$result = $imapcon->setquota("user/$user", "STORAGE", $quota);

If I set $quota to 'none', I get:

Error: xxx, STORAGE: none: not a number
-- 
    .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
                 .:.Regionales Rechenzentrum (RRZK).:.
   .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pkcs7-signature
Size: 5313 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20130725/3efc05fb/attachment.bin 


More information about the Info-cyrus mailing list