The discussion revolves around setting all users’ notifying email preferences to none during a forum import process. Queth wants to prevent current users from receiving notification emails while a few select users help with testing. pfaffman suggests deactivating all users, allowing them to reactivate by resetting their passwords. Queth finds a suitable script to deactivate users, and pfaffman advises to disable all users to prevent sending emails to the wrong people. To reactivate users once the process is complete, pfaffman states that users will need to use the forgot password feature to log in. Queth successfully runs the script, deactivating 25,400 users while excluding discobot and system users.
My usecase: im importing my current forum incrementally, in the first step, we will need to do a lot of recategorizing, giving folks badges, putting users in user groups, move posts around, put up new topics with help, etc. Meanwhile, a few select users will be invited to help with testing etc.
During that, I want to make sure that no current users get notification mails from a forum they don’t know exists. The “disable all emails” setting won’t work because the test users need to be able to request a new password to login.
I have already disabled the email digest and set the setting that sets all categories default on “muting”
I want to make sure no other mails or notification mails of any kind are sent except when specifically requested by users for a new password.
What can I do to make sure no emails are sent ? Is this enough?
You want to deactivate all users. They can reactivate by resetting their password. You should be able to find an example rails command to do that searching here or looking at some import scripts.
That looks like it! You might want to disable all users and let your few people reset their passwords to make sure that you’re not sending out mail to the wrong people and to see how that process works.
first checked in admin CP which users would be affected, I only needed myself active for now. So last active was 50 days or so (and I had been active for the last days), so 50 days was the cut off point.
Since I’m lazy and didn’t want to calculate much, I adapted the date to 2020-01-01 and ran the script,
and presto, 25400 users from active to inactive.
also: it excludes discobot and system user, they remain active. (which makes sense and I’m glad it is programmed this way )