Imap.GetMailMessage Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9313)
GetMailMessage(Int32)
Downloads the message with the specified sequence number and loads it into an instance of MailMessage.
Declaration
public MailMessage GetMailMessage(int sequenceNumber)
Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | sequenceNumber | Message sequence number.  | 
    
Returns
| Type | Description | 
|---|---|
| MailMessage | A downloaded message.  | 
    
Remarks
Uses IMAP FETCH command to retrieve the message.
By default, this method marks the message as read. To prevent this behavior, set the UsePeekForGetMessage to true.
GetMailMessage(String)
Downloads the message with the specified unique ID and loads it into an instance of MailMessage.
Declaration
public MailMessage GetMailMessage(string uniqueId)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | uniqueId | Message unique ID.  | 
    
Returns
| Type | Description | 
|---|---|
| MailMessage | A downloaded message.  | 
    
Remarks
Uses IMAP FETCH command to retrieve the message.
By default, this method marks the message as read. To prevent this behavior, set the UsePeekForGetMessage to true.