From 28a778955ca4c673cf1669e2c2150b2f5cf55167 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 28 Oct 2009 21:59:49 +0000 Subject: [PATCH] "setting standard IMAP and SMTP as default" --- setup/inc/class.setup_cmd_config.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/inc/class.setup_cmd_config.inc.php b/setup/inc/class.setup_cmd_config.inc.php index a4bd6a9b49..a2a5048d01 100644 --- a/setup/inc/class.setup_cmd_config.inc.php +++ b/setup/inc/class.setup_cmd_config.inc.php @@ -83,6 +83,8 @@ class setup_cmd_config extends setup_cmd { if ($save_ea_profile) $this->_save_ea_profile(); + $this->restore_db(); + return lang('Configuration changed.'); } $this->restore_db(); @@ -361,6 +363,8 @@ class setup_cmd_config extends setup_cmd $defaults['mail_suffix'] = '$domain'; $defaults['imapAdminUsername'] = 'cyrus@$domain'; $defaults['imapAdminPW'] = self::randomstring(); + $defaults['imapType'] = 2; // standard IMAP + $defaults['smtpType'] = 1; // standard SMTP return $defaults; }