From: <jfi...@us...> - 2003-02-22 12:02:03
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv5017 Modified Files: config_defaults_inc.php Log Message: This commit really helps improve the speed of any action that involves sending email. It can be improved more and I've been inspired to clean up the email_api a little more while I'm in here. Stay tuned for more in the next day or so but it's 4am now so sleep is in order! * config_defaults_inc.php (g_email_receive_own): new config option to control whether users get emails about their own actions * core/email_api.php (get_notify_flag): renamed to email_notify_flag() (email_collect_recipients): new function to collect the list of users that should receive emails but without executing several thousand queries and a much cleaner rewrite (build_bcc_list): + strip down most of it and call the above function + use config_get() (email_build_bug_message): + use config_get() + call bug_get_extended_row() instead of executing a query + call project_get_field() instead of executing a query (get_bug_summary): remove in favour of bug_get_field() Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.89 retrieving revision 1.90 diff -u -d -r1.89 -r1.90 --- config_defaults_inc.php 21 Feb 2003 00:32:38 -0000 1.89 +++ config_defaults_inc.php 22 Feb 2003 12:02:00 -0000 1.90 @@ -137,7 +137,8 @@ 'monitor' => ON, 'admin' => ON, 'bugnotes' => ON, - 'threshold' => NOBODY); + 'threshold_min' => NOBODY, + 'threshold_max' => NOBODY); # Following is the definition of the differences between the "new" action and the default. # In case you need to override the threshold for the new action in custom_config_inc.php, use: @@ -145,6 +146,9 @@ $g_notify_flags['new'] = array('bugnotes' => OFF, 'monitor' => OFF); + # Whether user's should receive emails for their own actions + $g_email_receive_own = OFF; + # set to OFF to disable email check $g_validate_email = ON; $g_check_mx_record = ON; |