email notification when people start monitoring an issue

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
helene
Posts: 3
Joined: 02 Sep 2010, 14:43

email notification when people start monitoring an issue

Post by helene »

I am using Mantis 1.2.1

Currently many users (reporters,managers, developers and administrator) receive an email notification when someone start monitoring an issue, regardless if they are themselves monitoring the issue.
What I want is that NO email notification is sent when a user starts monitoring an issue.
my configuration:

Code: Select all

$g_notify_flags['new']['threshold_min'] = DEVELOPER;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;
$g_notify_flags['new'] = array('bugnotes' => ON, 'monitor' => ON);
$g_notify_flags['monitor'] = array(	'reporter'	=> OFF,
									'handler'	=> OFF,
									'monitor'	=> OFF,
									'bugnotes'	=> OFF,
									'explicit'  => OFF,
									'threshold_min'	=> ADMINISTRATOR,
									'threshold_max' => ADMINISTRATOR);

$g_default_notify_flags['threshold_min'] = DEVELOPER; 
$g_default_notify_flags['threshold_max'] = ADMINISTRATOR; 
I'll be grateful for any help
Helene
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: email notification when people start monitoring an issue

Post by istvanb »

I dont think there is any "official" solution like setting a variable from ON to OFF or so, but if you

1, open your email_api.php
2, search for "function email_monitor_added( $p_bug_id, $p_user_id )"
3, comment line email_generic( $p_bug_id, 'monitor', 'email_notification_title_for_action_monitor', $t_opt, array( $p_user_id ) );

then you probably can get rid of the problem. The benefit of commenting here and not earlier in the bug monitoring process that you still LOG who is added at the bottom of the issue page.

let me know!
i-
Post Reply