Pop3.GetMessageHeadersAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9048)
GetMessageHeadersAsync(Int32, Stream, Object)
Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with a specified number from the server and writes it into a supplied stream.
Declaration
public Task<long> GetMessageHeadersAsync(int sequenceNumber, Stream output, object state = null)
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. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Int64> | The length of the headers in bytes. |
Remarks
"Uses POP3 "TOP 1" command to retrieve the headers.