Set quota "none" using Cyrus::IMAP::Admin

Wolfgang Breyha wbreyha at gmx.net
Tue Jan 17 05:54:16 EST 2012


Bron Gondwana wrote, on 17.01.2012 11:36:
> On Tue, Jan 17, 2012, at 03:57 PM, Ram wrote:
>> http://www.manpagez.com/man/3/Cyrus::IMAP::Admin/
>> There is a setquota function which should accept "none" for removing 
>> quota. But that does not work
>> 
>> How do I set unlimited quota using the setquota function
> 
> Does '-1' work?

Setting an "empty" quota works:

use Cyrus::IMAP::Admin;

print "setting some quota\n";
my $quotaroot = "user.mailboxid";
my @quotaargv = ($quotaroot, "STORAGE", 500);
$res = $backend->setquota(@quotaargv);

print "setting \"unlimited\"\n";
@quotaargv = ($quotaroot);
$res = $backend->setquota(@quotaargv);

Greetings, Wolfgang
-- 
Wolfgang Breyha <wbreyha at gmx.net> | http://www.blafasel.at/
Vienna University Computer Center | Austria



More information about the Info-cyrus mailing list