Copies a message with the specified unique ID to the specified folder.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Function CopyMessage ( _
	uniqueId As String, _
	destinationFolder As String _
) As ImapCopyResult
C#
public ImapCopyResult CopyMessage(
	string uniqueId,
	string destinationFolder
)

Parameters

uniqueId
Type: System..::..String
Message unique ID.
destinationFolder
Type: System..::..String
Folder that will receive copies of the message.

Return Value

Unique ID of the target message, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension.

Remarks

This method represents IMAP COPY command.

Unique ID of the new message will be returned if the server supports the ImapExtensions.UniqueIdPlus (UIDPLUS) extension and it is enabled. See SupportedExtensions and EnabledExtensions.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also