Page 1 of 1

A serious problem when answering an email

Posted: 30 May 2018, 13:15
by AlexNikitos
Installed:
MantisBT 2.12.0
Email Reporting 0.10.1
The script /plugins/EmailReporting/scripts/bug_report_mail.php is started every minute through the scheduler (CRON)

When you add a comment to the task, author receive the email with notification. When the author answers this email, a new comment is added to the task.

If the author adds another email (or more) to the recipients of the reply, a problem arises:

Every minute, the task adds copies of this comment and the author receives notifications.

And it does not stop.

I tried to stop the script, delete all comments and the task itself. But when you run the script again, this task is created with a new number, and comments again continues to be added every minute with the text of this task.

In the mailbox at this time nothing happens, the original letter has long ago disappeared when the first comment to the task was created.

Help please

Re: A serious problem when answering an email

Posted: 30 May 2018, 15:18
by SL-Gundam
This means EmailReporting ran into an error which caused the script to end prematurely

I suggest you run the "Complete test" of the mailbox in question while the problem is present and see what happens

For a proper error to appear you might need to make the following adjustments
- Enable debug mode in EmailReporting
- Add the following code to config_inc.php in MantisBT

Code: Select all

	$g_show_detailed_errors	= ON;

	$g_display_errors = array(
		E_WARNING => 'halt',
		E_NOTICE => 'halt',
		E_USER_ERROR => 'halt',
		E_USER_WARNING => 'halt',
		E_USER_NOTICE => 'halt'
	); 
Report any errors that appear or the last executed event (incase of debug mode) if there are no errors

Re: A serious problem when answering an email

Posted: 02 Jun 2018, 16:15
by SL-Gundam
Based on your description this might be related to this functionality: https://www.mantisbt.org/wiki/doku.php/ ... from_cc_to