I've tried to figure out whether the format of an e-mail address can be said to comply with the definition of a URI or not, but I've found no explicit confirmation of this so far. I hope someone can provide me with some insight here. Thanks in advance :)
我试图弄清楚电子邮件地址的格式是否符合URI的定义,但到目前为止我还没有找到明确的确认。我希望有人能给我一些启示。提前谢谢:)
6 个解决方案
#1
34
Yes, but with "mailto:" prefix.
是的,但是有“mailto:”前缀。
A URI has this form:
URI具有以下形式:
<scheme>:<scheme-specific-part>
The <scheme>
is "mailto", the <scheme-specific-part>
is the address.
For example:
例如:
mailto:max@provider.com
is a valid URI.
是一个有效的URI。
#2
12
Per RFC 3986:
RFC 3986:每
A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.
统一资源标识符(Uniform Resource Identifier, URI)是标识抽象或物理资源的紧凑序列。
The basic syntax components as defined by the RFC:
RFC定义的基本语法组件:
The generic URI syntax consists of a hierarchical sequence of
components referred to as the scheme, authority, path, query, and
fragment.
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
So - an e-mail address is not a URI. However mailto:you@server.com
is a valid URI.
因此,电子邮件地址不是URI。但是mailto:you@server.com是一个有效的URI。
#3
5
An e-mail address on it's own - foo@bar.com - I'd say no. A link to an e-mail address - mailto:foo@bar.com - I'd say yes.
它的一个电子邮件地址是自己的- foo@bar.com -我拒绝。链接到电子邮件地址——mailto:foo@bar.com——我同意。
#4
2
yes when used with "mailto" scheme, look here: http://www.ietf.org/rfc/rfc2396.txt
是的,当使用“mailto”计划时,请查看这里:http://www.ietf.org/rfc/rfc2396.txt。
1.3. Example URI
1.3。例子URI
The following examples illustrate URI that are in common use.
下面的例子说明了常用的URI。
mailto:mduerst@ifi.unizh.ch
-- mailto scheme for electronic mail addresses
mailto:mduerst@ifi.unizh。ch——电子邮件地址的mailto方案。
#5
1
If all URL's are URI's then all mailto:soandso@somwhere.com address are URIs because they are URLs
如果所有URL都是URI,那么所有mailto:soandso@somwhere.com地址是URI,因为它们是URL。
So I think an email address is a URI, if it has mailto: in front of it.
所以我认为电子邮件地址是一个URI,如果它有mailto:在它前面。
http://tools.ietf.org/html/rfc2368 http://tools.ietf.org/html/rfc1738
http://tools.ietf.org/html/rfc2368 http://tools.ietf.org/html/rfc1738
#6
1
I think it is, if it includes the "mailto:" schema reference in the address; otherwise not. But as it is only seen at html pages, in the most of cases the email address it self could not be considered a URI.
我认为,如果它包含了“mailto:”模式引用地址;否则不。但由于它只出现在html页面中,在大多数情况下,电子邮件地址本身不能被认为是URI。
If you haven't checked before, take a look at RFC3305 document.
如果您之前没有检查过,请查看RFC3305文档。
The official register of URI scheme names is maintained by IANA at http://www.iana.org/assignments/uri-schemes.html
URI方案名称的正式注册表由IANA在http://www.iana.org/assignments/uri-schemes.html中维护。
I hope it helps, Carlos.
我希望这能帮上忙,卡洛斯。
#1
34
Yes, but with "mailto:" prefix.
是的,但是有“mailto:”前缀。
A URI has this form:
URI具有以下形式:
<scheme>:<scheme-specific-part>
The <scheme>
is "mailto", the <scheme-specific-part>
is the address.
For example:
例如:
mailto:max@provider.com
is a valid URI.
是一个有效的URI。
#2
12
Per RFC 3986:
RFC 3986:每
A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.
统一资源标识符(Uniform Resource Identifier, URI)是标识抽象或物理资源的紧凑序列。
The basic syntax components as defined by the RFC:
RFC定义的基本语法组件:
The generic URI syntax consists of a hierarchical sequence of
components referred to as the scheme, authority, path, query, and
fragment.
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
So - an e-mail address is not a URI. However mailto:you@server.com
is a valid URI.
因此,电子邮件地址不是URI。但是mailto:you@server.com是一个有效的URI。
#3
5
An e-mail address on it's own - foo@bar.com - I'd say no. A link to an e-mail address - mailto:foo@bar.com - I'd say yes.
它的一个电子邮件地址是自己的- foo@bar.com -我拒绝。链接到电子邮件地址——mailto:foo@bar.com——我同意。
#4
2
yes when used with "mailto" scheme, look here: http://www.ietf.org/rfc/rfc2396.txt
是的,当使用“mailto”计划时,请查看这里:http://www.ietf.org/rfc/rfc2396.txt。
1.3. Example URI
1.3。例子URI
The following examples illustrate URI that are in common use.
下面的例子说明了常用的URI。
mailto:mduerst@ifi.unizh.ch
-- mailto scheme for electronic mail addresses
mailto:mduerst@ifi.unizh。ch——电子邮件地址的mailto方案。
#5
1
If all URL's are URI's then all mailto:soandso@somwhere.com address are URIs because they are URLs
如果所有URL都是URI,那么所有mailto:soandso@somwhere.com地址是URI,因为它们是URL。
So I think an email address is a URI, if it has mailto: in front of it.
所以我认为电子邮件地址是一个URI,如果它有mailto:在它前面。
http://tools.ietf.org/html/rfc2368 http://tools.ietf.org/html/rfc1738
http://tools.ietf.org/html/rfc2368 http://tools.ietf.org/html/rfc1738
#6
1
I think it is, if it includes the "mailto:" schema reference in the address; otherwise not. But as it is only seen at html pages, in the most of cases the email address it self could not be considered a URI.
我认为,如果它包含了“mailto:”模式引用地址;否则不。但由于它只出现在html页面中,在大多数情况下,电子邮件地址本身不能被认为是URI。
If you haven't checked before, take a look at RFC3305 document.
如果您之前没有检查过,请查看RFC3305文档。
The official register of URI scheme names is maintained by IANA at http://www.iana.org/assignments/uri-schemes.html
URI方案名称的正式注册表由IANA在http://www.iana.org/assignments/uri-schemes.html中维护。
I hope it helps, Carlos.
我希望这能帮上忙,卡洛斯。