diff --git a/interface/web/mail/mail_user_edit.php b/interface/web/mail/mail_user_edit.php
index e1e05d3d7f08fbc5f1f8d28eeb7d91b02c8531a8..a155cbdbfa00d706a93819043d5e7a9690cd8ca3 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