MessagePart.newWithMessage

gmime.message_part.MessagePart newWithMessage(string subtype, gmime.message.Message message)

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

Parameters

subtypemessage subtype or null for "rfc822"
messagemessage

Returns

a MIME message part object with a default content-type of

message/subtype containing message.