summaryrefslogtreecommitdiff
path: root/bin/setquota.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/setquota.pl')
-rwxr-xr-xbin/setquota.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/setquota.pl b/bin/setquota.pl
new file mode 100755
index 0000000..c5b9bee
--- /dev/null
+++ b/bin/setquota.pl
@@ -0,0 +1,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);