Msg.MailMessage

g GObject.Object GObject.Object Msg.MailMessage Msg.MailMessage GObject.Object->Msg.MailMessage

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_json (json_object)

get_body (is_html)

get_body_preview ()

get_cc ()

get_has_attachment ()

get_id ()

get_received_date ()

get_receiver ()

get_sender ()

get_subject ()

get_unread ()

set_body (body)

set_body_preview (preview)

set_cc (cc)

set_has_attachment (has_attachment)

set_id (id)

set_received_date (timestamp)

set_receiver (receiver)

set_sender (sender)

set_subject (subject)

set_unread (unread)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Msg.MailMessage(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Msg.MailMessageClass

Handling of mail message specific functions.

classmethod new()
Returns:

the newly created MsgMailMessage

Return type:

Msg.MailMessage

Creates a new MsgMailMessage.

classmethod new_from_json(json_object)
Parameters:

json_object (Json.Object) – The json object to parse

Raises:

GLib.Error

Returns:

the newly created MsgMailMessage

Return type:

Msg.MailMessage

Creates a new MsgMailMessage from json response object.

get_body(is_html)
Parameters:

is_html (bool) –

Returns:

mail body

Return type:

str

Get mail body.

get_body_preview()
Returns:

body preview of mail_message

Return type:

str

Get mail body preview.

get_cc()
Returns:

mail cc

Return type:

str

Get mail cc.

get_has_attachment()
Returns:

True if mail has attachments otherwise False

Return type:

bool

Get whether mail has attachments.

get_id()
Returns:

unique mail id

Return type:

str

Get id.

get_received_date()
Returns:

received date

Return type:

GLib.DateTime

Get mail received date.

get_receiver()
Returns:

mail receiver

Return type:

str

Get mail receiver.

get_sender()
Returns:

mail sender

Return type:

str

Get mail sender.

get_subject()
Returns:

subject of mail_message

Return type:

str

Get mail subject.

get_unread()
Returns:

unread count

Return type:

int

Get mail unread.

set_body(body)
Parameters:

body (str) – mail body

Set mail body.

set_body_preview(preview)
Parameters:

preview (str) –

set_cc(cc)
Parameters:

cc (str) – carbon copy string

Set mail cc.

set_has_attachment(has_attachment)
Parameters:

has_attachment (bool) – flag to set attachments

Set whether mail has attachments.

set_id(id)
Parameters:

id (str) – mail_message id

Set mail id.

set_received_date(timestamp)
Parameters:

timestamp (int) – received timestamp

Set mail received timestamp.

set_receiver(receiver)
Parameters:

receiver (str) – mail_message receiver

Set mail receiver.

set_sender(sender)
Parameters:

sender (str) – mail_message sender

Set mail sender.

set_subject(subject)
Parameters:

subject (str) – mail subject

Set mail subject.

set_unread(unread)
Parameters:

unread (int) – unread count

Set mail unread count.