diff --git a/create-mailbox.php b/create-mailbox.php index bed9474f..ec9beab5 100644 --- a/create-mailbox.php +++ b/create-mailbox.php @@ -259,6 +259,9 @@ TODO: this is the start of /create-mailbox code segment that was originally used To be compared / merged. */ + // apparently uppercase usernames really confuse some IMAP clients. + $fUsername = strtolower($fUsername); + $result = db_query ("INSERT INTO $table_mailbox (username,password,name,maildir,quota,domain,created,modified,active) VALUES ('$fUsername','$password','$fName','$maildir','$quota','$fDomain',NOW(),NOW(),'$sqlActive')"); if ($result['rows'] != 1 || !mailbox_postcreation($fUsername,$fDomain,$maildir, $quota)) {