summaryrefslogtreecommitdiff
path: root/bin/setquota.pl
blob: c5b9beec76452d7dade3659ad131eb3e24e23329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

# Create a new mailbox without a preference as to which server the mailbox is
# created on. To give the preferred mailbox server, set $mailboxPreferredServer
# to the server's Fully Qualified Domain Name.
use Kolab;
use Kolab::Cyrus;

my ($mailboxName, $mailboxType) = @ARGV;

Kolab::reloadConfig('/etc/kolab/kolab-shc.conf');

if ( !$mailboxType ) {
    $mailboxType = 'user';
}

Kolab::cyrusMurderSetQuota($mailboxName, $mailboxType);