How to block addition to 'monitored by'?

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

Moderators: Developer, Contributor

Post Reply
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

How to block addition to 'monitored by'?

Post 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.
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

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

Post by SL-Gundam »

Either before or after here you should build in the necessary checks: https://github.com/mantisbt-plugins/Ema ... .php#L1838
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

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

Post 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.
Post Reply