| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct CamelTransport; enum CamelTransportLock; void camel_transport_lock (CamelTransport *transport,CamelTransportLock lock); void camel_transport_unlock (CamelTransport *transport,CamelTransportLock lock); gboolean camel_transport_send_to_sync (CamelTransport *transport,CamelMimeMessage *message,CamelAddress *from,CamelAddress *recipients,GCancellable *cancellable,GError **error); void camel_transport_send_to (CamelTransport *transport,CamelMimeMessage *message,CamelAddress *from,CamelAddress *recipients,gint io_priority,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean camel_transport_send_to_finish (CamelTransport *transport,GAsyncResult *result,GError **error);
void camel_transport_lock (CamelTransport *transport,CamelTransportLock lock);
Locks transport's lock. Unlock it with camel_transport_unlock().
|
a CamelTransport |
|
lock type to lock |
Since 2.32
void camel_transport_unlock (CamelTransport *transport,CamelTransportLock lock);
Unlocks transport's lock, previously locked with camel_transport_lock().
|
a CamelTransport |
|
lock type to unlock |
Since 2.32
gboolean camel_transport_send_to_sync (CamelTransport *transport,CamelMimeMessage *message,CamelAddress *from,CamelAddress *recipients,GCancellable *cancellable,GError **error);
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.
|
a CamelTransport |
|
a CamelMimeMessage to send |
|
a CamelAddress to send from |
|
a CamelAddress containing all recipients |
|
optional GCancellable object, or NULL
|
|
return location for a GError, or NULL
|
Returns : |
TRUE on success or FALSE on error
|
Since 2.92
void camel_transport_send_to (CamelTransport *transport,CamelMimeMessage *message,CamelAddress *from,CamelAddress *recipients,gint io_priority,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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.
|
a CamelTransport |
|
a CamelMimeMessage to send |
|
a CamelAddress to send from |
|
a CamelAddress containing all recipients |
|
the I/O priority of the request |
|
optional GCancellable object, or NULL
|
|
a GAsyncReadyCallback to call when the request is satisfied |
|
data to pass to the callback function |
Since 2.92
gboolean camel_transport_send_to_finish (CamelTransport *transport,GAsyncResult *result,GError **error);
Finishes the operation started with camel_transport_send_to().
|
a CamelTransport |
|
a GAsyncResult |
|
return locaton for a GError, or NULL
|
Returns : |
TRUE on success, FALSE on error
|
Since 2.92