Following a Gmail outage, Mark_Schmucker is looking to bulk reset bounce scores for affected users on their forum. Overgrow suggests raising the limit in Settings or using the “reset bounce score after days” setting. Alternatively, neounix recommends checking the number of users with a bounce score greater than 0 using UserStat.where("bounce_score > 0").count in the Rails console. If desired, neounix also provides a command to reset all bounce scores to 0 via the Rails console: UserStat.update(bounce_score:0.0).
Gmail was down for a few hours and our forum’s emails to affected users were bouncing. Consequently we now have about 200 Gmail users with bounce scores over the limit. I’ve manually reset the bounce scores for two users, and email is now being delivered to them with no issues, so I think it’s safe to reset all Gmail users’ bounce scores.
Can anyone suggest a command to do that, presumably from the rails console? It doesn’t need to target only Gmail users- I’m happy to reset all bounce scores.