Page 1 of 1

Don't send emails for deleted tickets

Posted: 01 Jul 2014, 10:01
by JeromyK
Hello everybody

I want to turn off the email notifications for deleted tickets and tried it with the following entry in config_inc.php and it didn't work:

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

'Didn't work' means: The user gets a email for the ticket deletion. Is the code above incorrect?

Systeminformation
MantisBT: 1.2.17
EMailReportingPlugin: 0.9.0-DEV

Yours sincerely

Jeromy

Re: Don't send emails for deleted tickets

Posted: 01 Jul 2014, 10:19
by atrol
Check / use page "Manage" > "Manage Configuration" > "E-mail Notifications2
a) for "All Projects"
b) for your specific project

Re: Don't send emails for deleted tickets

Posted: 01 Jul 2014, 11:37
by JeromyK
Hello atrol

Thanks for your reply, works like a charm. But that means, that $g_notify_flags is not in use anymore?

Re: Don't send emails for deleted tickets

Posted: 01 Jul 2014, 12:33
by atrol
$g_notify_flags should still work.
But the settings in config_defaults_inc.php and config_inc.php are just fallback settings if there is no setting in database.
Maybe you used "Manage" > "Manage Configuration" > "E-mail Notifications" some time before.

Re: Don't send emails for deleted tickets

Posted: 01 Jul 2014, 13:08
by JeromyK
Ok, that make sense.

Thanks for the clarification!