email to viewer when not in project threshold defaults

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
keiths_at_mantis
Posts: 1
Joined: 29 Dec 2015, 22:56

email to viewer when not in project threshold defaults

Post by keiths_at_mantis »

I installed Mantis 1.2.17 with default settings for g_notify_flags and g_default_notify_flags.

For my three users on the system, all email preferences are checked, i.e., we all want an email on all events.

When I (admin/handler) update a note in a particular issue, the reporter gets an email, and the admin/handler/note maker (me) gets an email. The "viewer" does not get an email. Ok so far.

Then I (admin) go to Manage -> Manage Config -> Email Notifications screen and add the threshold range "reporter -> admin" only for the one line "Email on Note Added"

Then I add another note to that same issue. Now all three of us (reporter, admin/handler/note maker (me), AND the "viewer" get an email.

Why does the "viewer" user get the email? I thought setting the thresholds to reporter thru admin would prevent "viewer"s from getting one on that event.

Another way I could ask this question is, the above action produces these log file entries where U5 is the "viewer" userid:
... 15:35 PST mail_recipient Issue = #212, add Reporter = @U4
... 15:35 PST mail_recipient Issue = #212, add Handler = @U3
... 15:35 PST mail_recipient Issue = #212, add Monitor = @U3
... 15:35 PST mail_recipient Issue = #212, add Note Author = @U3
... 15:35 PST mail_recipient Issue = #212, add Project User = @U3
... 15:35 PST mail_recipient Issue = #212, add Project User = @U4
... 15:35 PST mail_recipient Issue = #212, add Project User = @U5
... 15:35 PST mail Issue = #212, Type = bugnote, Msg = 'email_..._bugnote_submitted', User = @U4, Email = 'zzz@zzz.com'.
... 15:35 PST mail message #169 queued
... 15:35 PST mail Issue = #212, Type = bugnote, Msg = 'email_..._bugnote_submitted', User = @U3, Email = 'yyy@yyy.com'.
... 15:35 PST mail message #170 queued
... 15:35 PST mail Issue = #212, Type = bugnote, Msg = 'email_..._bugnote_submitted', User = @U5, Email = 'xxx@xxx.com'.
... 15:35 PST mail message #171 queued
... 15:35 PST mail Processing e-mail queue (3 messages)

Why is U5 added to the recipient list? He is not Reporter, Handler, Monitor, Note Auth (as verified in messages), nor does he qualify in threshold range reporter -> admin.

I should add this. At the time that issue 212 was opened (the one I'm adding notes to), this user U5 used to be a "developer". But before all this email testing, I changed him to "viewer" via the admin screens. Does that make a difference?

Sorry if I'm missing something obvious. Thanks.
Mantis 1.2.17
PHP 5.5.9
MySQL 5.5.46
Linux
Post Reply