 | ImapCopyByNumberAsync(ListInt64, String, CancellationToken) Method |
Copies the specified email messages to the specified destination folder (mailbox).
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<List<long>> CopyByNumberAsync(
List<long> messageNumbers,
string destinationFolder,
CancellationToken cancel = default
)
Public Function CopyByNumberAsync (
messageNumbers As List(Of Long),
destinationFolder As String,
Optional cancel As CancellationToken = Nothing
) As Task(Of List(Of Long))
public:
Task<List<long long>^>^ CopyByNumberAsync(
List<long long>^ messageNumbers,
String^ destinationFolder,
CancellationToken cancel = CancellationToken()
)
member CopyByNumberAsync :
messageNumbers : List<int64> *
destinationFolder : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<List<int64>> Parameters
- messageNumbers ListInt64
- 1 based message numbers.
- destinationFolder String
- Destination folder (mailbox).
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskListInt64Unique-ids of the copied messages if the server supports
UniqueIdPlus, empty otherwise.
Remarks
IMAP servers may differ in the separator character used in folder hierarchy paths.
Common separator chars are '.' and '/'. For example: "Inbox/Folder" or "Inbox.Folder".
See Also