From ef6e5d764118bcc2918be9cfd7b76c31b24a1eb4 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Wed, 20 Apr 2016 17:43:59 +0200
Subject: [PATCH] Fixed Issue #3830 mdbox format not working in mailboxes.

---
 interface/web/mail/mail_user_edit.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/mail/mail_user_edit.php b/interface/web/mail/mail_user_edit.php
index e1e05d3d7f..a155cbdbfa 100644
--- a/interface/web/mail/mail_user_edit.php
+++ b/interface/web/mail/mail_user_edit.php
@@ -209,7 +209,7 @@ class page_action extends tform_actions {
 
 		// Set Maildir format
 		if ($this->id == 0) {
-			$this->dataRecord['maildir_format'] = $sys_config['maildir_format'];
+			$this->dataRecord['maildir_format'] = $mail_config['maildir_format'];
 		}
 		else {
 			// restore Maildir format
-- 
GitLab