class Net::IMAP::Address
Net::IMAP::Address 表示一个电子邮件地址,该地址已被服务器解析为组件部分。 Address 对象在 Envelope 字段中返回。
组语法¶ ↑
当 host 字段为 nil 时,这是一个特殊形式的地址结构,表示 [RFC5322] 组语法。 如果 mailbox 名称字段也为 nil,则表示组结束标记 (RFC-822 语法中的分号)。 如果 mailbox 名称字段不为 NIL,则表示组标记的开始,并且邮箱的 name 字段保存组名称短语。
公共实例方法
host → string 或 nil 点击切换源代码
mailbox → string 或 nil 点击切换源代码
name → string 或 nil 点击切换源代码
返回 [RFC5322] 地址的 display-name (或 RFC-822 语法中的邮箱 phrase)。
# File net-imap-0.5.4/lib/net/imap/response_data.rb, line 707
route → string 或 nil 点击切换源代码
返回来自 RFC-822 route-addr 的路由。
- 注意
-
[RFC5322] 不允许生成这种过时的路由寻址语法。但是,仍然必须接受和解析具有此语法的地址。
# File net-imap-0.5.4/lib/net/imap/response_data.rb, line 714