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 |
---|---|---|
Imap |
messageSet | A set of messages. |
String | destinationFolder | Folder that will receive copies of messages. |
Returns
Type | Description |
---|---|
Imap |
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 Imap
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 |
---|---|
Imap |
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 Imap
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 |
---|---|
Imap |
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 Imap