Page 1 of 1

email-notification

Posted: 28 Apr 2005, 13:37
by kmet
What is relation between $g_default_notify_flags,
user preferences and user_pref_table ?

I have
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => MANAGER,
'threshold_max' => MANAGER);
I also tried :
$g_notify_flags['new']['threshold_min']=MANAGER;
$g_notify_flags['new']['threshold_max']=MANAGER;


What I want : Managers should receive notification based on user preferences settings.
Other user sholud not receive email on new at all.

Now : All users receives email on new, event though I set it to 0 in database.

regards

Posted: 28 Apr 2005, 15:36
by thraxisp
Which mantis version are you using? (If it is 1.0.0ax, then changes in the configuration file, config_inc.php are ignored if you use the GUI to change the settings).

The method for getting the notification list is deacribed in the manual: http://manual.mantisbt.org/manual.confi ... .email.php .
Mantis uses flags and a threshold system to generate emails on events. For each new event, email is sent to:

* the reporter, qualified by the notify flag 'reporter' below
* the handler (or Assigned to), qualified by the notify flag 'handler' below
* anyone monitoring the bug, qualified by the notify flag 'monitor' below
* anyone who has ever added a bugnote the bug, qualified by the notify flag 'bugnotes' below
* anyone assigned to the project whose access level is greater than or equal to the notify flag 'threshold_min' and less than or equal to the notify flag 'threshold_max' below

From this list, those recipients who meet the following criteria are eliminated:

* the originator of the change, if $g_email_receive_own is OFF
* the recipient either no longer exists, or is disabled
* the recipient has turned their email_on_<new status> preference OFF
* the recipient has no email address entered