Copies a message with the specified sequence number to the specified folder.
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Function CopyMessage ( _ sequenceNumber As Integer, _ destinationFolder As String _ ) As ImapCopyResult |
C# |
---|
public ImapCopyResult CopyMessage( int sequenceNumber, string destinationFolder ) |
Parameters
- sequenceNumber
- Type: System..::..Int32
Message sequence number.
- 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 extension and it is enabled. See SupportedExtensions and EnabledExtensions.