News for hackers. Stuff that matters.
Re:Ask HN: What length do you choose for email fields? by jacquesm on Friday December 10, 2010 @07:43AM (#1991454)
I just did a little checking for you over a log of what people try to enter in to an email field in a form:

<5: 1056713 (none or fake)

5-9: 6052

10-19: 226676

20-29: 274956

30-39: 8912

40-49: 196 (from here on they all seem to be either fake or badly formed)

50-59: 29

60-69: 11

70-79: 2

> 80: 0

That's probably not very representative, but it gives you an idea of what people tend to enter in to email fields if you are not too strict about what you accept in the form itself.

So, valid addresses across this sample appear to be between 5 and 39 characters, with the shortest valid address in the log at 8 characters. It's technically possible to have both shorter and longer ones but the chances of those being actual addresses are probably quite low.

All that said, I'd stick with the RFC anyway.

Re:Ask HN: What length do you choose for email fields? by wladimir on Friday December 10, 2010 @09:18AM (#1991678)
I'm seriously curious why someone would choose a mail address >=30 characters.
Re:Ask HN: What length do you choose for email fields? by cnvogel on Friday December 10, 2010 @02:56PM (#1992921)
The company I work for has a policy to take your full name in the local part. So if you are

Juan Alfonso de Borja y Estevez

then by default you'll have a email-address of

[email protected]

This is just the first hit for "long spanish name" I found on google, but I have colleagues that have email-addresses that are that long or (in a few cases) even longer.

Re:Ask HN: What length do you choose for email fields? by jacquesm on Friday December 10, 2010 @11:13AM (#1992059)
Some isps will auto-generate an email address based on the first and lastname of the user + the domain name of the ISP, some corporations do the same. This can get into the +30 characters territory fairly easily.