I think this is probably a modification / feature request, before making an issue I will just check if I should or not!
This came about while using the email address validator. It uses the hostname validator, in it's default setup (which is what I want) to check an email address on a form, it carries out a local check regardless of whether you want it to check for local names or not. ------------- Settings: ALLOW_DNS = 1 (e.g., example.com) Input: '[email protected] fgg' (Malformed domain name) Output: "'testing.com fgg' does not appear to be a valid local network name" (amongst other messages) Expected Output: NULL (No message) ------------ I wouldn't expect a message as I am not wanting to know if it's a local name or not, I've chosen not to allow them. Therefore it should skip this check and report it as an invalid email address. Further to this if you enter a local name email address it reports that it's a local address but they aren't supported. I can semi see the point in this although 9 times out of 10 I would imagine that again, if you don't want to check for local names then it shouldn't be clever and work it out. Just skip it and report it as a malformed email address. The main reason this came up is because as far as a user is concerned I doubt they care which part of their email address is malformed! All they need to know is it's not valid. Doing an email validation you end up with ~15 error messages to translate! I can't see how you make it report just one or two or consolidate them (I'm using Zend Form so it is automatically displaying the messages) without first checking for them and making code to remove some. Anyway I believe the top one should be considered a bug, the rest I would like some opinion on or comments as to the simplest form of email validation for the actual non developer / tech user. ----- Simon http://www.ajb007.co.uk/ -- View this message in context: http://www.nabble.com/Zend_Validate_Hostname-and-local-names-tp21747190p21747190.html Sent from the Zend Framework mailing list archive at Nabble.com.
