GMime.MessagePart

g GMime.MessagePart GMime.MessagePart GMime.Object GMime.Object GMime.Object->GMime.MessagePart GObject.Object GObject.Object GObject.Object->GMime.Object

Subclasses:

None

Methods

Inherited:

GMime.Object (29), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (subtype)

class

new_with_message (subtype, message)

get_message ()

set_message (message)

Virtual Methods

Inherited:

GMime.Object (8), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

message

GMime.Message

r

child GMime.Message

parent_object

GMime.Object

r

parent GMime.Object

Class Details

class GMime.MessagePart(**kwargs)
Bases:

GMime.Object

Abstract:

No

Structure:

GMime.MessagePartClass

A message/rfc822 or message/news MIME part.

classmethod new(subtype)
Parameters:

subtype (str) – message subtype or None for “rfc822”

Returns:

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

Return type:

GMime.MessagePart

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

classmethod new_with_message(subtype, message)
Parameters:
Returns:

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

Return type:

GMime.MessagePart

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

get_message()
Returns:

the message part contained within self.

Return type:

GMime.Message

Gets the message object on the message part object self.

set_message(message)
Parameters:

message (GMime.Message) – message

Sets the message object on the message part object self.