Page 1 of 1

How to block addition to 'monitored by'?

Posted: 04 Dec 2023, 20:15
by mushu
Windows, Mantis v2.25.7

We have an automated mailbox that sends emails to Mantis and gets processed with the Email plugin. Where in the code would I insert a test for that mailbox name to prevent it from being added as a "Monitored By" user? I made the account in Mantis for that mailbox and then set it to disabled but where there are many monitors it just muddies up the water so I want to just prevent it from being added in the first place.

Re: How to block addition to 'monitored by'?

Posted: 05 Dec 2023, 00:08
by SL-Gundam
Either before or after here you should build in the necessary checks: https://github.com/mantisbt-plugins/Ema ... .php#L1838

Re: How to block addition to 'monitored by'?

Posted: 05 Dec 2023, 00:36
by mushu
Thank you! It appears that I simply need to add that mailbox email address to line 1843 to prevent it from being added.