Imap.GetMessageInfo Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9313)
GetMessageInfo(Int32, ImapListFields)
Gets information about a message with the specified sequence number.
Declaration
public ImapMessageInfo GetMessageInfo(int sequenceNumber, ImapListFields fields)
Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | sequenceNumber | Message sequence number.  | 
    
| ImapListFields | fields | Specifies the scope of information to determine about the message.  | 
    
Returns
| Type | Description | 
|---|---|
| ImapMessageInfo | A message info.  | 
    
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.
GetMessageInfo(String, ImapListFields)
Gets information about a message with the specified unique ID
Declaration
public ImapMessageInfo GetMessageInfo(string uniqueId, ImapListFields fields)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | uniqueId | Message unique ID.  | 
    
| ImapListFields | fields | Specifies the scope of information to determine about the message.  | 
    
Returns
| Type | Description | 
|---|---|
| ImapMessageInfo | A message info.  | 
    
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.