Method

EDataServerSourcemail_signature_replace

since: 3.6

Declaration [src]

void
e_source_mail_signature_replace (
  ESource* source,
  const gchar* contents,
  gsize length,
  gint io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchrously replaces the signature file for source with the given contents of length bytes. The signature file for source is given by e_source_mail_signature_get_file().

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

Available since: 3.6

This method completes asynchronously. Use e_source_mail_signature_replace_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

contents

Type: const gchar*

The signature contents.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
length

Type: gsize

The length of contents in bytes.

io_priority

Type: gint

The I/O priority of the request.

cancellable

Type: GCancellable

Optional GCancellable object, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied.

The argument can be NULL.
user_data

Type: gpointer

Data to pass to the callback function.

The argument can be NULL.
The data is owned by the caller of the method.