I’m doing a phpBB import. There are a bunch of missing email addresses (apparently because Facebook and others authenticated, but didn’t supply an email address) and a bunch more invalid ones.
The client doesn’t want to have messages from those 12K (of 370K) users all lumped in to @system
.
One solution I’m considering is modifying create_users
in base.rb
to call create_user
when the email is missing (not sure why create_users
needed to do that anyway, as create_user checks too) and then modifying create_user
to use {discourse_username}@badmail.domain.com as the email address (Of course there are invalid usernames too, so I’ll go with the Discourse username).
This will mean that these users exist in the system, but if a user is to reclaim the account it’ll require manual intervention from an admin, which this client seems OK with.
Questions:
- Is there some better way?
- Should I submit a PR?
- How long would such a change take a competent developer?