首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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,然后返回子类型的值。

代码语言:javascript
复制
# 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

代码语言:javascript
复制
# File lib/net/imap.rb, line 2026
def multipart?
  return false
end

扫码关注腾讯云开发者

领取腾讯云代金券