Disable email on a diaspora user with bad email

By | November 8, 2020

I get some folks that are very active with bad email addresses and it causes a lot of extra work on postfix.

To solve:

RAILS_ENV=production bin/rails c

user = User.find_by(email: ‘bad@email.net’)

user.disable_mail = true


Leave a Reply

Your email address will not be published. Required fields are marked *