Uploads the message to the specified folder and sets its flags.
public string UploadMessage(
string folder,
MimeMessage message,
ImapMessageFlags flags,
string[] keywords
)
Public Function UploadMessage( _
ByVal folder As String, _
ByVal message As MimeMessage, _
ByVal flags As ImapMessageFlags, _
ByVal keywords As String() _
) As String
public:
String UploadMessage(
String^ folder,
MimeMessage^ message,
ImapMessageFlags flags,
array<String>^ keywords
);
Parameters
- folder
- Folder that will receive the message.
- message
- Message to upload.
- flags
- Message flags.
- keywords
- Keywords to set.
Return Value
Unique ID of the message, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension.
Remarks
This method represents IMAP APPEND command.
Unique ID of the message will be returned if the server supports the ImapFeatures.UniqueIdPlus extension
and it is enabled. See SupportedFeatures and EnabledFeatures.