transfer_messages_to


Description:

[ Version ( since = "3.0" ) ]
public async bool transfer_messages_to (GenericArray<string> message_uids, Folder destination, bool delete_originals, int io_priority, Cancellable? cancellable = null, out GenericArray<string>? transferred_uids) throws Error

Asynchronously copies or moves messages from one folder to another.

If the this or destination folders have the same parent store, this may be more efficient than using append_message.

When the operation is finished, callback will be called. You can then call transfer_messages_to.end to get the result of the operation.

Parameters:

this

the source Folder

message_uids

message UIDs in this

destination

the destination Folder

delete_originals

whether or not to delete the original messages

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function




2022 vala-language.org