Follow-up Comment #4, bug #8241 (project web-cyradm):

I decided that it was easy enough to code this my self.  I've uploaded two
diff files, one for lib/cyradm.php and one for newaccount.php.  Apply these
two patches and add a line like:
$AUTOCREATE_MAILBOXES = array("INBOX.Junk", "INBOX.Sent", "INBOX.Trash",
"INBOX.Drafts");
to your conf.php file.  

A few notes:
You must specify the mailbox names as they would appear to the client.  This
means that if cyrus's altnamespace option is yes, an item in
AUTOCREATE_MAILBOXES would be "Junk" rather than "INBOX.Junk".  And if
unixhierarchysep is yes then it would be "INBOX/Junk".  This is necessary
because the mailboxes are not just added but subscribed to as well, and
subscribing can only be done by a client connected to his IMAP account (not a
cyrus admin).  Thanks to Tim Schaab (tim at madtown.cc), for whoms post to the
mailing list this is based.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=8241>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/

_______________________________________________
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

Reply via email to