由IETF等定义的电子邮件地址的正确最小长度是多少? [英] What is the proper minimum length of an email address as defined by the IETF or the like?

查看:796
本文介绍了由IETF等定义的电子邮件地址的正确最小长度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我特别寻找前缀和域的最小长度。我看到有冲突的信息,没有什么看起来权威。作为参考,我发现这个页面声称一个字符的电子邮件地址正常工作:



http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=176



我尝试使用gmail验证电子邮件地址,他们期望前缀大于或等于6.这些显然是不合适的。我的网络框架预期前缀大于或等于2

解决方案

最短的有效电子邮件地址可能只包含两部分:名称和域。



name @ domain



由于名称和域名的长度可能为1个字符,最小总长度可解析为3个字符。


I'm specifically looking for the minimum length of the prefix and domain. I've seen conflicting information and nothing that looks authoritative. For reference, I found this page which claims that a one character email address is functional:

http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=176

I tried validating email addresses at gmail and they expect prefix greater than or equal to 6. These are obviously way off. My web framework expects prefix greater than or equal to 2.

解决方案

The shortest valid email address may consist of only two parts: name and domain.

name@domain

Since both the name and domain may have the length of 1 character, the minimal total length resolves to 3 characters.

这篇关于由IETF等定义的电子邮件地址的正确最小长度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆