Gets information about a message with the specified unique ID
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Function GetMessageInfo ( _ uniqueId As String, _ fields As ImapListFields _ ) As ImapMessageInfo |
C# |
---|
public ImapMessageInfo GetMessageInfo( string uniqueId, ImapListFields fields ) |
Parameters
- uniqueId
- Type: System..::..String
Message unique ID.
- fields
- Type: Rebex.Net..::..ImapListFields
Specifies the scope of information to determine about the message.
Return Value
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.