Imap.StoreMessage Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9119)
StoreMessage(String, MimeMessage, ImapMessageFlags, String[])
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, MimeMessage message, ImapMessageFlags flags, params string[] keywords)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
MimeMessage | message | Message to upload. |
ImapMessageFlags | flags | Message flags. |
String[] | keywords | Keywords to set. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, MailMessage, ImapMessageFlags, String[])
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, MailMessage message, ImapMessageFlags flags, params string[] keywords)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
MailMessage | message | Message to upload. |
ImapMessageFlags | flags | Message flags. |
String[] | keywords | Keywords to set. |
Returns
Type | Description |
---|---|
String | Unique ID of the message, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension. |
StoreMessage(String, String, String, String, String, ImapMessageFlags, String[])
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, string from, string to, string subject, string body, ImapMessageFlags flags, params string[] keywords)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
ImapMessageFlags | flags | Message flags. |
String[] | keywords | Keywords to set. |
Returns
Type | Description |
---|---|
String | Unique ID of the message, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension. |
StoreMessage(String, Stream, ImapMessageFlags, String[])
Uploads the message read from the stream to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, Stream input, ImapMessageFlags flags, params string[] keywords)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
Stream | input | The input stream. |
ImapMessageFlags | flags | Message flags. |
String[] | keywords | Keywords to set. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, String, ImapMessageFlags, String[])
Uploads the message read from a local file and sets its flags.
Declaration
public string StoreMessage(string folder, string path, ImapMessageFlags flags, params string[] keywords)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
String | path | The path to the mail message file. |
ImapMessageFlags | flags | Message flags. |
String[] | keywords | Keywords to set. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, MimeMessage)
Uploads the message to the specified folder.
Declaration
public string StoreMessage(string folder, MimeMessage message)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
MimeMessage | message | Message to upload. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, MailMessage)
Uploads the message to the specified folder.
Declaration
public string StoreMessage(string folder, MailMessage message)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
MailMessage | message | Message to upload. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, String, String, String, String)
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, string from, string to, string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, Stream)
Uploads the message read from the stream to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, Stream input)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
Stream | input | The input stream. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, String)
Uploads the message read from a local file and sets its flags.
Declaration
public string StoreMessage(string folder, string path)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
String | path | The path to the mail message file. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, MimeMessage, ImapMessageFlags)
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, MimeMessage message, ImapMessageFlags flags)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
MimeMessage | message | Message to upload. |
ImapMessageFlags | flags | Message flags. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, MailMessage, ImapMessageFlags)
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, MailMessage message, ImapMessageFlags flags)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
MailMessage | message | Message to upload. |
ImapMessageFlags | flags | Message flags. |
Returns
Type | Description |
---|---|
String | Unique ID of the message, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension. |
StoreMessage(String, String, String, String, String, ImapMessageFlags)
Uploads the message to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, string from, string to, string subject, string body, ImapMessageFlags flags)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
ImapMessageFlags | flags | Message flags. |
Returns
Type | Description |
---|---|
String | Unique ID of the message, or null (Nothing in Visual Basic) if the server does not support the UIDPLUS extension. |
StoreMessage(String, Stream, ImapMessageFlags)
Uploads the message read from the stream to the specified folder and sets its flags.
Declaration
public string StoreMessage(string folder, Stream input, ImapMessageFlags flags)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
Stream | input | The input stream. |
ImapMessageFlags | flags | Message flags. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.
StoreMessage(String, String, ImapMessageFlags)
Uploads the message read from a local file and sets its flags.
Declaration
public string StoreMessage(string folder, string path, ImapMessageFlags flags)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder that will receive the message. |
String | path | The path to the mail message file. |
ImapMessageFlags | flags | Message flags. |
Returns
Type | Description |
---|---|
String | 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 ImapExtensions.UniqueIdPlus extension and it is enabled. See SupportedExtensions and EnabledExtensions.