Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.GetMimeMessageAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

GetMimeMessageAsync(Int32, Object)

Begins asynchronous GetMimeMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MimeMessage.

Declaration
public Task<MimeMessage> GetMimeMessageAsync(int sequenceNumber, object state = null)
Parameters
Type Name Description
Int32 sequenceNumber

Message sequence number.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<MimeMessage>

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.

GetMimeMessageAsync(String, Object)

Begins asynchronous GetMimeMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MimeMessage.

Declaration
public Task<MimeMessage> GetMimeMessageAsync(string uniqueId, object state = null)
Parameters
Type Name Description
String uniqueId

Message unique ID.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<MimeMessage>

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.

In This Article
  • GetMimeMessageAsync(Int32, Object)
  • GetMimeMessageAsync(String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies