MessagePart.newWithMessage

Creates a new MIME message part object with a default content-type of message/subtype containing message.

class MessagePart
static
newWithMessage

Parameters

subtype string

message subtype or null for "rfc822"

message gmime.message.Message

message

Return Value

Type: gmime.message_part.MessagePart

a MIME message part object with a default content-type of message/subtype containing message.