Imap.CopyMessageAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9083)
CopyMessageAsync(ImapMessageSet, String, Object)
Begins asynchronous CopyMessage operation. Copies messages from the current folder that belong to a specified message set to the specified folder.
Declaration
public Task<ImapCopyResult> CopyMessageAsync(ImapMessageSet messageSet, string destinationFolder, object state = null)
Parameters
Type | Name | Description |
---|---|---|
ImapMessageSet | messageSet | A set of messages. |
String | destinationFolder | Folder that will receive copies of messages. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.
CopyMessageAsync(Int32, String, Object)
Begins asynchronous CopyMessage operation. Copies a message with the specified sequence number to the specified folder.
Declaration
public Task<ImapCopyResult> CopyMessageAsync(int sequenceNumber, string destinationFolder, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sequenceNumber | Message sequence number. |
String | destinationFolder | Folder that will receive copies of the message. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.
CopyMessageAsync(String, String, Object)
Begins asynchronous CopyMessage operation. Copies a message with the specified unique ID to the specified folder.
Declaration
public Task<ImapCopyResult> CopyMessageAsync(string uniqueId, string destinationFolder, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uniqueId | Message unique ID. |
String | destinationFolder | Folder that will receive copies of the message. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.