# Disable email notification of moderator status

**URL:** <https://meta.discourse.org/t/disable-email-notification-of-moderator-status/155846>\
**Category:** Feature\
**Created:** [24 ביוני,‏ 2020,‏ 6:54pm UTC](https://meta.discourse.org/t/disable-email-notification-of-moderator-status/155846 "2020-06-24T18:54:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [24 ביוני,‏ 2020,‏ 6:54pm UTC](https://meta.discourse.org/t/disable-email-notification-of-moderator-status/155846/1 "2020-06-24T18:54:47Z")

</div>

I ran an import yesterday and got a frantic email that all moderators received a “YOU’RE A MODERATOR!!!” email notification. Most of those moderators weren’t supposed to know about the impending migration just yet.

I ran this same import script a bunch of times over the past couple weeks (not to mention a whole bunch of imports over the past 3 years) without this happening, so I guess something happened in the past week or so that adds this notification? A quick look at recent commits didn’t find it.

I modified my script to include `active: false` in the user creation record, but this is likely to bite other people as well.

`disable_emails=non-staff` is set, but moderators are staff, so . . . I guess I’ll disable all emails too.

I’m not sure what the feature request is. . . Disable these notifcations in `base.rb`? oh, but

> <https://github.com/discourse/discourse/blob/main/script/import_scripts/base.rb#L81>

oh, but then it gets un-set in `reset_site_settings`, maybe. Add a “don’t notify users when promoted to moderator or admin” setting?

---

_[View the full topic](https://meta.discourse.org/t/disable-email-notification-of-moderator-status/155846)._
