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 (33), Camel.Object (4), GObject.Object (37), Gio.Initable (2)
Structs:GObject.ObjectClass (5)
  send_to (message, from_, recipients, io_priority, cancellable, callback, *user_data)
  send_to_finish (result)
  send_to_sync (message, from_, recipients, cancellable)

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
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.

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.