Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.CopyMessage Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

CopyMessage(ImapMessageSet, String)

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

Declaration
public ImapCopyResult CopyMessage(ImapMessageSet messageSet, string destinationFolder)
Parameters
Type Name Description
ImapMessageSet messageSet

A set of messages.

String destinationFolder

Folder that will receive copies of messages.

Returns
Type Description
ImapCopyResult

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.

CopyMessage(Int32, String)

Copies a message with the specified sequence number to the specified folder.

Declaration
public ImapCopyResult CopyMessage(int sequenceNumber, string destinationFolder)
Parameters
Type Name Description
Int32 sequenceNumber

Message sequence number.

String destinationFolder

Folder that will receive copies of the message.

Returns
Type Description
ImapCopyResult

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.

CopyMessage(String, String)

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

Declaration
public ImapCopyResult CopyMessage(string uniqueId, string destinationFolder)
Parameters
Type Name Description
String uniqueId

Message unique ID.

String destinationFolder

Folder that will receive copies of the message.

Returns
Type Description
ImapCopyResult

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.

In This Article
  • CopyMessage(ImapMessageSet, String)
  • CopyMessage(Int32, String)
  • CopyMessage(String, String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies