addr-spec = local-part "@" domainこんがらがってきたよ・・・
local-part = dot-atom / quoted-string / obs-local-part
dot-atom-text = 1*atext *("." 1*atext)
dot-atom = [CFWS] dot-atom-text [CFWS]
atext = ALPHA / DIGIT / ; Printable US-ASCII
"!" / "#" / ; characters not including
"$" / "%" / ; specials. Used for atoms.
"&" / "'" /
"*" / "+" /
"-" / "/" /
"=" / "?" /
"^" / "_" /
"`" / "{" /
"|" / "}" /
"~"
quoted-string = [CFWS]
DQUOTE *([FWS] qcontent) [FWS] DQUOTE
[CFWS]
qcontent = qtext / quoted-pair
qtext = %d33 / ; Printable US-ASCII
%d35-91 / ; characters not including
%d93-126 / ; "\" or the quote character
obs-qtext
obs-local-part = word *("." word)
word = atom / quoted-string
atom = [CFWS] 1*atext [CFWS]
local-partに使っていいのは下記の3種類
- dot-atom
- quoted-string
- obs-local-part
- .example@example.com
- example.@example.com
- e..xample@example.com
atextは、アルファベット、数値、下記の記号のいずれか
! # $ % & ' * + - / = ? ^ _ ` { | } ~
ってことは、結構ひどいアドレスも作れちゃうんだよなー・・・定義上は。
-----
そのうち、また追記/変更します
0 件のコメント:
コメントを投稿