Uploads the message read from the stream to the specified folder and sets its flags.
public string UploadMessage(
string folder,
Stream input,
ImapMessageFlags flags,
string[] keywords
)
Public Function UploadMessage( _
ByVal folder As String, _
ByVal input As Stream, _
ByVal flags As ImapMessageFlags, _
ByVal keywords As String() _
) As String
public:
String UploadMessage(
String^ folder,
Stream^ input,
ImapMessageFlags flags,
array<String>^ keywords
);
Parameters
- folder
- Folder that will receive the message.
- input
- The input stream.
- 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 stream must contain data 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.