Is there a way to pre-approve emails that have a subdomain component, for example:

john@law.stanford.edu

Right now it seems only @stanford.edu can be pre-approved.

Is there a way to specify what the email address should end with? Ending in stanford.edu (without the @) will allow for all subdomains from this domain.

Comments

andrew7’s picture

Component: User interface » Code
Category: support » feature
Priority: Normal » Major

I really need this feature urgently. I'm a student but can set aside a small budget if need be.

Most educational institutions utilize subdomains in their email addresses, so I could imagine this feature being helpful to others besides me.

Also, I need the role assignment to be persistent, i.e. not change if a user changes her email address.

johnhanley’s picture

Hello,

Supporting sub-domains in email addresses should be a simple matter of changing the regular expression used to determine a legitimate pattern.

The same should be true for sub-domains w/o the prefix or the at symbol. I'd need to explore this some before committing though.

However, I don't know how quickly I'll get to this. I'm working on revising a couple of my other more popular modules plus I have on-going professional and personal obligations.

In the meantime patches are always welcome.

John

johnhanley’s picture

Status: Active » Postponed
johnhanley’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

Sorry, I don't have the time to implement this change. Patches welcome.