class Net::IMAP::BodyTypeMessage

Net::IMAP::BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

Public Instance Methods

body → BodyStructure click to toggle source

Returns a Net::IMAP::BodyStructure for the message’s body structure.

# File lib/net/imap/response_data.rb, line 1023
      
envelope → Envelope click to toggle source

Returns a Net::IMAP::Envelope giving the envelope structure.

# File lib/net/imap/response_data.rb, line 1017
      
media_subtype click to toggle source

Obsolete: use subtype instead. Calling this will generate a warning message to stderr, then return the value of subtype.

# File lib/net/imap/response_data.rb, line 1039
def media_subtype
  warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1)
  return subtype
end
multipart? → false click to toggle source

BodyTypeMessage is not used for multipart MIME parts.

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