8. Macros
8.1. Macro Definitions
Many mechanisms and modifiers perform macro expansion on part of theterm.
8. マクロ
8.1. マクロの定義
多くのマクロおよび変更子は、要素部分のマクロ展開を実行する。
domain-spec = macro-string domain-end domain-end = ( "." toplabel [ "." ] ) / macro-expand toplabel = ( *alphanum ALPHA *alphanum ) / ( 1*alphanum "-" *( alphanum / "-" ) alphanum ) ; LDH rule plus additional TLD restrictions ; (see [RFC3696], Section 2) alphanum = ALPHA / DIGIT explain-string = *( macro-string / SP ) macro-string = *( macro-expand / macro-literal ) macro-expand = ( "%{" macro-letter transformers *delimiter "}" ) / "%%" / "%_" / "%-" macro-literal = %x21-24 / %x26-7E ; visible characters except "%" macro-letter = "s" / "l" / "o" / "d" / "i" / "p" / "h" / "c" / "r" / "t" transformers = *DIGIT [ "r" ] delimiter = "." / "-" / "+" / "," / "/" / "_" / "="domain-spec = macro-string domain-end domain-end = ( "." toplabel [ "." ] ) / macro-expand toplabel = ( *alphanum ALPHA *alphanum ) / ( 1*alphanum "-" *( alphanum / "-" ) alphanum ) ; TLD制限を追加したLDH規則 ; ([RFC3696]の2章を参照のこと) alphanum = ALPHA / DIGIT explain-string = *( macro-string / SP ) macro-string = *( macro-expand / macro-literal ) macro-expand = ( "%{" macro-letter transformers *delimiter "}" ) / "%%" / "%_" / "%-" macro-literal = %x21-24 / %x26-7E ; “%”以外の可視文字 macro-letter = "s" / "l" / "o" / "d" / "i" / "p" / "h" / "c" / "r" / "t" transformers = *DIGIT [ "r" ] delimiter = "." / "-" / "+" / "," / "/" / "_" / "="A literal "%" is expressed by "%%". "%_" expands to a single " " space. "%-" expands to a URL-encoded space, viz., "%20".“%”文字は“%%”で表現される。
“%_”は単一の“ ”空白に展開される。
“%-”はURL符号化による空白、すなわち“%20”に展開される。The following macro letters are expanded in term arguments: s = <sender> l = local-part of <sender> o = domain of <sender> d = <domain> i = <ip> p = the validated domain name of <ip> v = the string "in-addr" if <ip> is ipv4, or "ip6" if <ip> is ipv6 h = HELO/EHLO domain以下のマクロ文字は引数に展開される:
s = <sender>
l = <sender> のローカル部分
o = <sender> のドメイン
d = <domain>
i = <ip>
p = <ip> の有効なドメイン名
v = <ip> がipv4の場合は“in-addr”、<ip> がipv6の場合は“ip6”という文字列
h = HELO/EHLOドメイン
[Page 27]
《PREV》 |