GMime.MessagePartial

g GMime.MessagePartial GMime.MessagePartial GMime.Object GMime.Object GMime.Part GMime.Part GMime.Object->GMime.Part GMime.Part->GMime.MessagePartial GObject.Object GObject.Object GObject.Object->GMime.Object

Subclasses:

None

Methods

Inherited:

GMime.Part (25), GMime.Object (28), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (id, number, total)

class

reconstruct_message (partials, num)

get_id ()

get_number ()

get_total ()

Virtual Methods

Inherited:

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

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

id

str

r

message/partial id

number

int

r

the part number

parent_object

GMime.Part

r

parent GMime.Part object

total

int

r

the total number of message/partials that make up the whole message/rfc822

Class Details

class GMime.MessagePartial(**kwargs)
Bases:

GMime.Part

Abstract:

No

Structure:

GMime.MessagePartialClass

A message/partial MIME part.

classmethod new(id, number, total)
Parameters:
  • id (str) – message/partial part id

  • number (int) – message/partial part number

  • total (int) – total number of message/partial parts

Returns:

an empty MIME message/partial object.

Return type:

GMime.MessagePartial

Creates a new MIME message/partial object.

classmethod reconstruct_message(partials, num)
Parameters:
  • partials (GMime.MessagePartial) – an array of message/partial mime parts

  • num (int) – the number of elements in partials

Returns:

a GMime.Message object on success or None on fail.

Return type:

GMime.Message

Reconstructs the GMime.Message from the given message/partial parts in partials.

get_id()
Returns:

the message/partial id or None on fail.

Return type:

str

Gets the message/partial id parameter value.

get_number()
Returns:

the message/partial part number or %-1 on fail.

Return type:

int

Gets the message/partial part number.

get_total()
Returns:

the total number of message/partial parts needed to reconstruct the original message or -1 on fail.

Return type:

int

Gets the total number of message/partial parts needed to reconstruct the original message.