We have patched squirrelmail-1.2.6 to allow for the automatic creation
of the user's Inbox if it doesn't already exist, and if the server
supports it. We are aware of support in Cyrus-IMAP, and so have a test
for that server in the patch. If other servers support this feature,
they should be added to the test.
When this is combined with the "Automatically Create Special Folders"
option, new users need only have their username/password created and
the mailbox structure will be automatically created when they first log
in. Note that with the Cyrus-IMAP server, the mailbox will not be
created by inbound mail (as with qmail, for example), but only once the
user logs in.
In Cyrus-IMAP, it is necessary to add the directive "autocreatequota=##"
to the imapd.conf file (see documentation in the imapd.conf man page).
If the ## is positive, it is used as a quota, if it is negative, there
is no quota, if it is zero auto-creation is not allowed.
The patch simply checks to see if the server is known to support
auto-creation, checks to see if the mailbox does not already exist, and
creates it if both conditions are true. A configuration option is
included, which defaults to "false". If the server type supports
auto-creation and the configuration option is changed to "true" then
auto-creation will be attempted. If the administrator has set this
option to "true" but has not configured the IMAP server to actually
permit it, then the command will fail, and the user will get an error
message to the effect that creation of their Inbox is not permitted.
(This error message is generated by the server, and so may vary).
Thanks for all the good work!
Nic Bernstein nic@...
Onlight llc. http://www.onlight.com
757 North Water Street v. 414.272.4477
Milwaukee, Wisconsin 53202 f. 414.290.0335