A serious problem when answering an email

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
AlexNikitos
Posts: 6
Joined: Mar 20, 2018 5:47 pm

A serious problem when answering an email

Post by AlexNikitos » May 30, 2018 8:15 am

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

SL-Gundam
Posts: 573
Joined: Jul 06, 2011 9:17 am

Re: A serious problem when answering an email

Post by SL-Gundam » May 30, 2018 10:18 am

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

SL-Gundam
Posts: 573
Joined: Jul 06, 2011 9:17 am

Re: A serious problem when answering an email

Post by SL-Gundam » Jun 02, 2018 11:15 am

Based on your description this might be related to this functionality: https://www.mantisbt.org/wiki/doku.php/ ... from_cc_to

Post Reply