[ postfixadmin-Bugs-3427498 ] Error in mailbox path creation
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2011-10-23 14:10:27
|
Bugs item #3427498, was opened at 2011-10-23 12:44 Message generated for change (Settings changed) made by christian_boltz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3427498&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: Core Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Error in mailbox path creation Initial Comment: With $CONF['domain_path'] = 'NO' and $CONF['domain_in_mailbox'] = 'NO' in config.php mailbox path generated like $CONF['domain_path'] = 'NO' and $CONF['domain_in_mailbox'] = 'YES'. Change $maildir = $fUsername . "/"; in create_mailbox.php at string 179 to $maildir = escape_string (strtolower($_POST['fUsername'])) . "/"; resolve the problem. Thnks. ---------------------------------------------------------------------- >Comment By: Christian Boltz (christian_boltz) Date: 2011-10-23 16:10 Message: You mean something like this? (for use...@ex...): you expect: "username/" actual result: "use...@ex.../" This is intentional behaviour - if the maildir path would be just "username/", we would risk conflicts if you create a mailbox "use...@fo...r", the maildir would also be "username/" and the mails for use...@ex... and use...@fo...r would be mixed up in the same maildir. This is also documented in config.inc.php: // Note: If $CONF['domain_path'] is set to NO, this setting will be forced to YES. $CONF['domain_in_mailbox'] = 'YES'; I added a comment to the code (MailboxHandler.php) to avoid future confusion about this. If you really want to have only "username/" as name for the maildir (I don't recommend it, and you have been warned!), you can use a function for $CONF[maildir_name_hook]. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3427498&group_id=191583 |