Imap.GetMessageHeaders Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9119)
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.