From 9dcafb7afc7a62778811e498b6a6b58128d94a43 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 11 Oct 2008 19:58:34 +0000 Subject: [PATCH] create-mailbox.php: force username to be lowercase - this helps some IMAP clients apprently git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@465 a1433add-5e2c-0410-b055-b7f2511e0802 --- create-mailbox.php | 3 +++ 1 file changed, 3 insertions(+) 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)) {