These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:03 pm Advanced search

Error in email validation specs?

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

Error in email validation specs?

Postby Lucas Malor » Sat Jun 01, 2013 12:18 pm

Hello all. In your validation rules for email inputs, you say the local part can be long as you want. But the SMTP spec, RFC 5321 4.5.3.1.1, says that it must be 64 chars long at maximum. RFT 5322 3.4.1 doesn't specify the length of local part, but I think it implicitly follow what specified by RFC 5321 (even if it says explicitly to follow RFC 5321 for the domain part...)
Lucas Malor
<h6>
 
Posts: 3
Joined: Sat Jun 01, 2013 12:00 pm

Re: Error in email validation specs?

Postby Lucas Malor » Sat Jun 01, 2013 3:29 pm

I've found some another little errors: each label of an hostname must be long at maximum 63 characters (RFC 1034 #3.1), and it can't start or end with an hyphen (RFC 952, under "Assumptions", modified by RFC 1123 #2). Furthermore the entire length of an email address can't exceed 256 characters: RFC 5321 #4.5.3.1.3

I read all these informations from Wikipedia articles about email address and hostname syntax, but I verified them as you can read.
Lucas Malor
<h6>
 
Posts: 3
Joined: Sat Jun 01, 2013 12:00 pm

Re: Error in email validation specs?

Postby zcorpan » Wed Jun 12, 2013 11:54 pm

zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: Error in email validation specs?

Postby Lucas Malor » Thu Jun 13, 2013 7:00 am

Thank you for the reply. I strongly disagree with ignoring the length constraints of RFCs. I think they are practical enough for the real use, even if applied to punyencoded strings.
Lucas Malor
<h6>
 
Posts: 3
Joined: Sat Jun 01, 2013 12:00 pm


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest