IAsyncImapClient.CopyMessageAsync

CopyMessageAsync(int, string, IConnection, CancellationToken)

Copies the message

public Task<string> CopyMessageAsync(int sequenceNumber, string folderName, 
    IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionInt32Connection to a server
sequenceNumberStringThe sequence number of the message
folderNameIConnectionFolder name where a message is to be copied
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null Please, read more https://tools.ietf.org/html/rfc4315

See Also


CopyMessageAsync(string, string, IConnection, CancellationToken)

Copies the message.

public Task<string> CopyMessageAsync(string uniqueId, string folderName, 
    IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionStringConnection to a server.
uniqueIdStringThe uid of the message.
folderNameIConnectionFolder name where a message is to be copied.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null. Please, read more https://tools.ietf.org/html/rfc4315

See Also