Ruby 2.4

Net::IMAP::BodyTypeMessage

Net::IMAP::BodyTypeMessage类

Parent:Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :envelope, :body, :lines, :md5, :disposition, :language, :extension)

Net :: IMAP :: BodyTypeMessage表示消息的MESSAGE / RFC822正文结构。

领域:

envelope

返回一个给出信封式结构的Net :: IMAP :: Envelope。

body

返回一个给出主体结构的对象。

And Net::IMAP::BodyTypeMessage has all methods of Net::IMAP::BodyTypeText.

公共实例方法

media_subtype() Show source

Obsolete: 改为使用子类型。 调用此函数将生成一条警告消息给stderr,然后返回子类型的值。

# File lib/net/imap.rb, line 2033 def media_subtype $stderr.printf("warning: media_subtype is obsolete.\n") $stderr.printf(" use subtype instead.\n") return subtype end

multipart?() Show source

# File lib/net/imap.rb, line 2026 def multipart? return false end