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()
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1987 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |