Bugs item #1970684, was opened at 2008-05-23 10:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1970684&group_id=191583
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mailbox/Subfolder Autocreation Problems with Courier IMAP
Initial Comment:
This is believed to only be relevant when using Courier IMAP
When adding a new mailbox to a domain and default IMAP folders to be created are specified in the config file
(e.g. $CONF['create_mailbox_subdirs']=array('Trash');
these folders are never created and an error is displayed.
The reason is that in create-mailbox.php, the IMAP commands to create the subfolders are issued _before_ the welcome mail is sent. However, when no welcome mail is sent, the users home directory is not present. Without it, Courier IMAP is not able to successfully authenticate, thus not allowing to create the IMAP directories.
The fix is simple, just move the function that sends the mail above the one that creates the subfolders. Adding a little pause, say sleep(1) helped me to get the mail through my filters (spam, etc) before the IMAP commands were issued. This fix was tested and found to be working.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1970684&group_id=191583
|