Pop3Client.GetMessageSize Method

OpenPop.NET

OpenPop.NET POP3 Library Documentation

Pop3Client.GetMessageSize Method

Gets the size in bytes of a single message

public int GetMessageSize(
   int messageNumber
);

Parameters

messageNumber
The number of a message which may not be a message marked as deleted.
The messageNumber must be inside the range [1, messageCount]

Return Value

Size of the message

Exceptions

Exception Type Condition
PopServerException If the server did not accept the LIST command

See Also

Pop3Client Class | OpenPop.Pop3 Namespace