Hello, Look at the createMailbox function in the attached cyr_adduser.pl script. Leave only this function there to suit your purposes. The syntax is as easy as: createMailbox($newuser,'INBOX'); createMailbox($newuser,'Drafts'); createMailbox($newuser,'Sent Items');
Make a user.txt file (in this file must be more that 2 rows) with one username per line, run ./cyr_batchadd.sh users.txt Best Regards, Leon Kolchinsky -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muenz, Michael Sent: Thursday, November 10, 2005 12:19 PM To: [email protected] Subject: [Web-cyradm] Planned Feature: Autocreate Folders Hi, there's an old issue with web-cyradm, that there won't get any folders created automatically when creating a mailbox. I want sent-mail, trash and spam. I remember there were many discussions on the list about that feature, and perhaps it's solved with a squirrelmail feature? Are there any users with some solutions? I'm planning to write a little shell script based on the "expect" tool to autocreate folders after you set up the mailbox with webcyradm. Are there any wishes or ideas for a feature like that? BUT: This won't get in CVS or stable as long as it's written in bash. Any suggestions/ideas/opinions (or solutions)? Michael _______________________________________________ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch _______________________________________________ Web-cyradm mailing list [email protected] http://www.web-cyradm.org/mailman/listinfo/web-cyradm
cyr_batchadd.sh
Description: cyr_batchadd.sh
cyr_adduser.pl
Description: cyr_adduser.pl
_______________________________________________ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch _______________________________________________ Web-cyradm mailing list [email protected] http://www.web-cyradm.org/mailman/listinfo/web-cyradm
