On Mon, 4 Apr 2011, Nick Burch wrote:
On Mon, 28 Mar 2011, Nick Burch wrote:
At the moment, the Email Validator considers @localhost email addresses to
be invalid, due to the Domain Validator not considering it to be valid.
Initially I thought this was wrong for all cases, so I opened VALIDATOR-292
and attached a patch that fixed this. However, after a bit more thinking
and some discussions with a friend who also uses the email validator, I
began to think it might need to be configurable. For a development setup,
and possibly also for an intranet setup, you likely do want @localhost
email addresses to be considered valid. You possibly also want to allow
@machinename ones too. However, for a public facing internet app setup you
likely wouldn't want that.
What do people think on this? Should the Email Validator accept @localhost
by default? And if not, what's the best way to allow the user to indicate
that they do want that - another method (eg isValidLocal), overloading (eg
isValid(String, boolean acceptLocal) or something else?
Any takers on this? I'm happy to re-work my patch if required, but if the
silence means people are happy with @localhost being accepted as valid, then
my existing patch could be applied as-is.
Anyone got an opinion on which way to go with this?
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org