View Issue Details

IDProjectCategoryView StatusLast Update
0023736mantisbtemailpublic2017-12-15 09:31
ReporterTomR Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.8.0 
Summary0023736: Users added by plugin can be exluded again by standard MantisBT functionality
Description

I always want to sent mail to reporters when status is changed to FEEDBACK.
So all reporters have preference Email on Feedback enabled.

But I do not want them to receive email on change of handlers ( happens a lot in our organization )
So all reporters have preference Email on Change of Handler disabled.
Second preference 'overwrites' first preference.

In core/email_api.php ( line 435 and line 654 ).

So my thoughts were to write a plugin and use event EVENT_NOTIFY_USER_INCLUDE to always include the reporter when status changed to FEEDBACK.
However the user include with plugin is DROPPED later by the preference Change of Handler.
So including a user with plugin is NOT always respected.

How to accomplish reporters always get mail for status FEEDBACK even when handler changes BUT preference for Change of Hanler being disabled?

Additional Information

Log file:

Notice user 131.

Added because is reporter
Added by plugin UserMailFeedback
Dropped by preference email_on_assigned

15-12-2017 15:13 CET RECIPIENT email_api.php:264 email_collect_recipients() Issue = 0008465, add @U3 (explicitly specified)
15-12-2017 15:13 CET RECIPIENT email_api.php:274 email_collect_recipients() Issue = 0008465, add @U131 (reporter)
15-12-2017 15:13 CET RECIPIENT email_api.php:284 email_collect_recipients() Issue = 0008465, add @U100 (handler)
15-12-2017 15:13 CET RECIPIENT email_api.php:338 email_collect_recipients() Issue = 0008465, add @U3 (note author)
15-12-2017 15:13 CET RECIPIENT email_api.php:353 email_collect_recipients() Issue = 0008465, add @U2 (based on access level)
15-12-2017 15:13 CET RECIPIENT email_api.php:353 email_collect_recipients() Issue = 0008465, add @U3 (based on access level)
15-12-2017 15:13 CET RECIPIENT email_api.php:366 email_collect_recipients() Issue = 0008465, add @U131 (by UserMailFeedback plugin)
15-12-2017 15:13 CET RECIPIENT email_api.php:421 email_collect_recipients() Issue = 0008465, drop @U3 (own action)
15-12-2017 15:13 CET RECIPIENT email_api.php:435 email_collect_recipients() Issue = 0008465, drop @U131 (pref email_on_assigned off)
15-12-2017 15:13 CET RECIPIENT email_api.php:435 email_collect_recipients() Issue = 0008465, drop @U100 (pref email_on_assigned off)

TagsNo tags attached.

Activities

There are no notes attached to this issue.