Deactivated Account Still Receives Emails

email

#1

I have deactivated a user account under ‘Permissions’ in Discourse. Where it states that the user will need to reactivate their email (I am hoping that this can force them to change their email and also, not attempt to email them anymore).

The user has made posts, as they had activated their account previously via email confirmation link. I can see that the system is still emailing them with updates on thread responses, despite the fact that the account/email has been deactivated. I deactivated the account in the hopes that they will not be emailed anymore as their address hard bounces in Mandrill.

Mandrill only blacklists bad email addresses for about 14 days, so depending on them 100% isn’t wise.

If this won’t be supported, is there another way of disabling discourse from attempting to mail certain users? I can manually disable them after checking the mandrill logs. I only need to disable accounts that have been activated already, but for some reason start to hard bounce later as the email address was closed or something. For initial activation emails, the mandrill suppression blacklist is sufficient.

Thanks!


How do I preserve an account, but prevent them from logging in?
(Mittineague) #2

Have you gone to their Profile Preferences and unchecked all of the “email me” settings?


(Jeff Atwood) #3

I guess that is a good point, if you deactivate an email that implies you do not trust it, and it should not be emailed. I guess the mailing code should have a common function all emails pass through that check this state before sending @techapj.


#4

@Mittineague - Thanks, I reactivated their accounts, impersonated them, unchecked all the ‘email me’ settings and deactivated their accounts again. Should solve this for now, although a little bit tedious.

@codinghorror - Thanks for the response. That would be perfect, even better would be to integrate with the Mandrill api to automatically deactivate hard-bounce email addresses in Discourse.


(Dan Dascalescu) #5

Seconding this for a similar use case, updating a user’s email.

Sometimes a user changes their email (and lets the community know in various ways - e.g. over social media channels) but forgets to update it in their Discourse profile. As a helpful admin, I can change the email in their Public Profile -> Preferences but Discourse will still email the old address until the new one is confirmed.

A secondary problem here is that there is no UI indication that the email address was changed and different admins won’t know that one of them had already started the process of changing the user’s email address.


No UI indication that a user's email was changed and is pending verification
(Arpit Jalan) #6

This is now fixed via:


(Jeff Atwood) #7

But the deactivated user can still get a new email confirmation email, yes? Just wanted to double check there…


(Arpit Jalan) #8

Yes, confirmation emails can/will be sent to deactivated user.


(Jeff Atwood) #9