Copies messages from the current folder that belong to a specified message set to the specified folder.

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

Syntax

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

Parameters

messageSet
Type: Rebex.Net..::..ImapMessageSet
A set of messages.
destinationFolder
Type: System..::..String
Folder that will receive copies of messages.

Return Value

A list that contains the unique IDs of target messages, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension.

Remarks

This method represents IMAP COPY command.

List of unique IDs of the new messages 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