IETF定义的电子邮件地址的实际最小长度是多少? [英] What is the actual minimum length of an email address as defined by the IETF?

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

问题描述

我特别在寻找前缀和域的最小长度。

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

我尝试验证Gmail上的电子邮件地址,他们希望前缀大于或等于6。

I tried validating email addresses at Gmail and they expect prefix greater than or equal to 6.

显然,这些方法已经完成。

These are obviously way off.

我的Web框架期望前缀大于或等于2。

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

name@domain

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

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天全站免登陆