class Net::IMAP::BodyTypeMessage - net-imap: Ruby Standard Library Documentation

# 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:

- media_type

- subtype

- param

- content_id

- description

- encoding

- size

### Public Instance Methods

body → BodyStructure click to toggle source

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

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1025

envelope → Envelope click to toggle source

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

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1019

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 net-imap-0.5.4/lib/net/imap/response_data.rb, line 1041
    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 net-imap-0.5.4/lib/net/imap/response_data.rb, line 1034
    def multipart?
      return false
    end