Pop3.GetMessageHeaders Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9119)
GetMessageHeaders(Int32, Stream)
Downloads the headers of a message with a specified number from the server and writes it into a supplied stream.
Declaration
public long GetMessageHeaders(int sequenceNumber, Stream output)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sequenceNumber | The sequence number of the message to download headers from. |
Stream | output | Stream that will receive the message headers. |
Returns
Type | Description |
---|---|
Int64 | The length of the headers in bytes. |
Remarks
"Uses POP3 "TOP 1" command to retrieve the headers.