ispman/lib/ISPMan UserMan.pm,1.58.4.4,1.58.4.5
Pedro Algarvio <[email protected]> Thu, 05 Oct 2006 10:53:20 +0000
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv11076/lib/ISPMan
Modified Files:
Tag: dev_1_3-cyrus_virtdomain2
UserMan.pm
Log Message:
Since we now know which is the mailbox separator(for cyrus backend), functionallity to create some default sub folders was added upon new user creation.
Index: UserMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/UserMan.pm,v
retrieving revision 1.58.4.4
retrieving revision 1.58.4.5
diff -u -d -r1.58.4.4 -r1.58.4.5
--- UserMan.pm 5 Oct 2006 09:43:27 -0000 1.58.4.4
+++ UserMan.pm 5 Oct 2006 10:53:18 -0000 1.58.4.5
@@ -177,6 +177,11 @@
my $quota=$r->param("mailQuota") * 1024;
$self->addProcessToHost($domain, $r->param("mailHost"), "createMailbox", "mailbox=$_uid");
$self->addProcessToHost($domain, $r->param("mailHost"), "setMailboxQuota", "mailbox=$_uid"a=$quota");
+ my @folders = split(' ', $self->getConf('newMailboxFolders'));
+ foreach my $folder (@folders) {
+ $self->addProcessToHost($domain, $r->param("mailHost"),
+ "createSubMailbox", "uid=$_uid&folder=$folder");
+ }
}
# send the process to method addUserFileServerProcess
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV