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

Imap.GetMessageHeaders Method

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

GetMessageHeaders(Int32, Stream)

Downloads the headers of a message with the specified sequence number and writes it into a supplied stream.

Declaration
public long GetMessageHeaders(int sequenceNumber, Stream output)
Parameters
Type Name Description
Int32 sequenceNumber

Message sequence number.

Stream output

Stream that will receive the message headers.

Returns
Type Description
Int64

The length of the headers in bytes.

Remarks

Uses IMAP FETCH command to retrieve the headers.

GetMessageHeaders(String, Stream)

Downloads the headers of a message with the specified unique ID and writes it into a supplied stream.

Declaration
public long GetMessageHeaders(string uniqueId, Stream output)
Parameters
Type Name Description
String uniqueId

Message unique ID.

Stream output

Stream that will receive the message headers.

Returns
Type Description
Int64

The length of the headers in bytes.

Remarks

Uses IMAP FETCH command to retrieve the headers.

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