Uploads the message read from a local file and sets its flags.
public string UploadMessage(
string folder,
string path,
ImapMessageFlags flags,
string[] keywords
)
Public Function UploadMessage( _
ByVal folder As String, _
ByVal path As String, _
ByVal flags As ImapMessageFlags, _
ByVal keywords As String() _
) As String
public:
String UploadMessage(
String^ folder,
String^ path,
ImapMessageFlags flags,
array<String>^ keywords
);
Parameters
- folder
- Folder that will receive the message.
- path
- The path to the mail message file.
- 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
The file must be in MIME format, other formats are not supported.
MIME files often have the '.eml' extension and are produced by Outlook Express.
In contrast, Outlook produces '.msg' files that are not MIME files and therefore
cannot be uploaded using this method.
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.