Imap.GetMessageInfoAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9313)
GetMessageInfoAsync(Int32, ImapListFields, Object)
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified sequence number.
Declaration
public Task<ImapMessageInfo> GetMessageInfoAsync(int sequenceNumber, ImapListFields fields, object state = null)
Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | sequenceNumber | Message sequence number.  | 
    
| ImapListFields | fields | Specifies the scope of information to determine about the message.  | 
    
| Object | state | An optional user-provided object that identifies this particular asynchronous operation.  | 
    
Returns
| Type | Description | 
|---|---|
| Task<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.
GetMessageInfoAsync(String, ImapListFields, Object)
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified unique ID
Declaration
public Task<ImapMessageInfo> GetMessageInfoAsync(string uniqueId, ImapListFields fields, object state = null)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | uniqueId | Message unique ID.  | 
    
| ImapListFields | fields | Specifies the scope of information to determine about the message.  | 
    
| Object | state | An optional user-provided object that identifies this particular asynchronous operation.  | 
    
Returns
| Type | Description | 
|---|---|
| Task<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.