[Solar-talk] ValidateEmail filter
Jeff Surgeson
solar at 3hex.com
Sat Mar 8 03:22:29 CST 2008
> > > Is there a reason why validateEmail() filter no longer forces the domain
> > > part to include a dot com or dot whatever. When it was part of
> > > Solar_DataFilter it did but now not.
> > If I remember correctly the .domain part is not a requirement in an email
> > address. But I think that a dot at the end is invalid per the email spec.
> > I could be wrong.
> >
> > Robert
> I would agree. If there a period after the hostname it must be followed by
> a suffix (com, edu, etc). Forcing the suffix is not entirely a good idea if
> you have email addresses like rkolbe at localhost and that is it (or something
> to that extent).
Maybe I am missing something here, in my rather small world if you attempted
to send an email with x at x and no TLD it would not be accepted by any mail
server other than a local intranet or network as far as I am aware. And in my
humble opinion the reason to validate it is to make sure it is a valid usable
email address that can be used to send and receive email, attempting to send
to x at x will fail. So I would say forcing it to validate for the full
domainname made up of SLD and TLD is important.
In all the email validation stuff I have looked at, and solar email filter
used to do this as well, it would validate for a minimum of 5 characters, in
the format of: x at x.x
This being the shortest possible and still valid email address, so the
question still remains, Solar email filter used to validate it for x at x.x but
no longer does.
Is there a reason it was removed that I am not aware of?
Or am I just missing the plot?
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the Solar-talk
mailing list