Camel.Transport

g Camel.Object Camel.Object Camel.Service Camel.Service Camel.Object->Camel.Service Camel.Transport Camel.Transport Camel.Service->Camel.Transport GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object GObject.Object->Camel.Object Gio.Initable->Camel.Service

Subclasses:

None

Methods

Inherited:

Camel.Service (32), Camel.Object (4), GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

get_request_dsn ()

send_to (message, from_, recipients, io_priority, cancellable, callback, *user_data)

send_to_finish (result)

send_to_sync (message, from_, recipients, cancellable)

set_request_dsn (request_dsn)

Virtual Methods

Inherited:

Camel.Service (5), Camel.Object (2), GObject.Object (7), Gio.Initable (1)

do_send_to_sync (message, from_, recipients, cancellable)

Properties

Inherited:

Camel.Service (8), Camel.Object (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Camel.Service

r

Class Details

class Camel.Transport(**kwargs)
Bases:

Camel.Service

Abstract:

Yes

Structure:

Camel.TransportClass

get_request_dsn()
Returns:

whether should request Delivery Status Notification

Return type:

bool

Returns whether should request Delivery Status Notification in the “send_to” operation.

New in version 3.50.

send_to(message, from_, recipients, io_priority, cancellable, callback, *user_data)
Parameters:

Sends the message asynchronously to the given recipients, regardless of the contents of message. If the message contains a “Bcc” header, the transport is responsible for stripping it.

When the operation is finished, callback will be called. You can then call Camel.Transport.send_to_finish() to get the result of the operation.

New in version 3.0.

send_to_finish(result)
Parameters:

result (Gio.AsyncResult) – a Gio.AsyncResult

Raises:

GLib.Error

Returns:

True on success, False on error

out_sent_message_saved:

set to True, if the sent message was also saved

Return type:

(bool, out_sent_message_saved: bool)

Finishes the operation started with Camel.Transport.send_to().

New in version 3.0.

send_to_sync(message, from_, recipients, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True on success or False on error

out_sent_message_saved:

set to True, if the sent message was also saved

Return type:

(bool, out_sent_message_saved: bool)

Sends the message to the given recipients, regardless of the contents of message. If the message contains a “Bcc” header, the transport is responsible for stripping it.

New in version 3.0.

set_request_dsn(request_dsn)
Parameters:

request_dsn (bool) – a value to set

Sets whether should request Delivery Status Notification during the “send_to” operation.

New in version 3.50.

do_send_to_sync(message, from_, recipients, cancellable) virtual
Parameters:
Returns:

True on success or False on error

out_sent_message_saved:

set to True, if the sent message was also saved

Return type:

(bool, out_sent_message_saved: bool)

Sends the message to the given recipients, regardless of the contents of message. If the message contains a “Bcc” header, the transport is responsible for stripping it.

New in version 3.0.