Click or drag to resize

ImapUploadMessageAsync(String, Byte, UploadMessageInfo, CancellationToken) Method

Uploads message to specified folder (mailbox).

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<long?> UploadMessageAsync(
	string folder,
	byte[] eml,
	UploadMessageInfo messageInfo,
	CancellationToken cancel = default
)

Parameters

folder  String
Folder to upload.
eml  Byte
Message to upload.
messageInfo  UploadMessageInfo
Additional message information (e.g. flags, internal date, Gmail labels).
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

TaskNullableInt64
Unique-id of the uploaded message (Null if server does not support UniqueIdPlus).
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