From 6572c98bd1deaceae58ced362324d15a66bc3c14 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 25 Jul 2018 15:33:02 -0600 Subject: [PATCH] * Mail - set default refresh rate to 5 minutes for new installations --- mail/setup/default_records.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mail/setup/default_records.inc.php b/mail/setup/default_records.inc.php index 0245509b20..c40bfe1ddc 100644 --- a/mail/setup/default_records.inc.php +++ b/mail/setup/default_records.inc.php @@ -27,6 +27,10 @@ if (!$GLOBALS['egw_setup']->db->affected_rows()) $defaultgroup = $GLOBALS['egw_setup']->add_account('Default','Default','Group',False,False); $GLOBALS['egw_setup']->add_acl('mail','run',$defaultgroup); } +$prefs = new Api\Preferences(); +$prefs->read_repository(false); +$prefs->add('mail', 'nextmatch-mail.index.rows-autorefresh', '300', 'default'); +$prefs->save_repository(false, 'default'); // change common/default_app pref to mail, if it was felamimail Api\Preferences::change_preference('common', 'default_app', 'mail', 'felamimail');