Camel.Transport¶
- Subclasses:
 None
Methods¶
- Inherited:
 Camel.Service (32), Camel.Object (4), GObject.Object (37), Gio.Initable (2)
- Structs:
 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 Camel.Service (5), Camel.Object (2), GObject.Object (7), Gio.Initable (1)
  | 
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class Camel.Transport(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
- get_request_dsn()¶
 - Returns:
 whether should request Delivery Status Notification
- Return type:
 
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:
 message (
Camel.MimeMessage) – aCamel.MimeMessageto sendfrom (
Camel.Address) – aCamel.Addressto send fromrecipients (
Camel.Address) – aCamel.Addresscontaining all recipientsio_priority (
int) – the I/O priority of the requestcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfieduser_data (
objectorNone) – data to pass to the callback function
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) – aGio.AsyncResult- Raises:
 - Returns:
 Trueon success,Falseon error- out_sent_message_saved:
 set to
True, if the sent message was also saved
- Return type:
 
Finishes the operation started with
Camel.Transport.send_to().New in version 3.0.
- send_to_sync(message, from_, recipients, cancellable)¶
 - Parameters:
 message (
Camel.MimeMessage) – aCamel.MimeMessageto sendfrom (
Camel.Address) – aCamel.Addressto send fromrecipients (
Camel.Address) – aCamel.Addresscontaining all recipientscancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
 - Returns:
 Trueon success orFalseon error- out_sent_message_saved:
 set to
True, if the sent message was also saved
- Return type:
 
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:
 message (
Camel.MimeMessage) – aCamel.MimeMessageto sendfrom (
Camel.Address) – aCamel.Addressto send fromrecipients (
Camel.Address) – aCamel.Addresscontaining all recipientscancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
 Trueon success orFalseon error- out_sent_message_saved:
 set to
True, if the sent message was also saved
- Return type:
 
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.