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.MimeMessage
to sendfrom (
Camel.Address
) – aCamel.Address
to send fromrecipients (
Camel.Address
) – aCamel.Address
containing all recipientsio_priority (
int
) – the I/O priority of the requestcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the request is satisfieduser_data (
object
orNone
) – 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:
True
on success,False
on 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.MimeMessage
to sendfrom (
Camel.Address
) – aCamel.Address
to send fromrecipients (
Camel.Address
) – aCamel.Address
containing all recipientscancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
True
on success orFalse
on 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.MimeMessage
to sendfrom (
Camel.Address
) – aCamel.Address
to send fromrecipients (
Camel.Address
) – aCamel.Address
containing all recipientscancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Returns:
True
on success orFalse
on 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.