ImapClient.CopyMessage

CopyMessage(IConnection, int, string)

Copies the message

public string CopyMessage(IConnection connection, int sequenceNumber, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
folderNameStringFolder name where a message is to be copied

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


CopyMessage(IConnection, string, string)

Copies the message

public string CopyMessage(IConnection connection, string uniqueId, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
folderNameStringFolder name where a message is to be copied

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


CopyMessage(int, string)

Copies the message

public string CopyMessage(int sequenceNumber, string folderName)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
folderNameStringFolder name where a message is to be copied

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


CopyMessage(string, string)

Copies the message

public string CopyMessage(string uniqueId, string folderName)
ParameterTypeDescription
uniqueIdStringThe uid of the message
folderNameStringFolder name where a message is to be copied

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