Class Pop3Response
A POP3 server response. POP3 responses are simpler than SMTP/IMAP:
a status indicator (+OK or -ERR) followed by text.
For multi-line responses (RETR, TOP, CAPA, LIST, UIDL), the body
follows on subsequent lines until a terminator line containing a
single .. Immutable.
Inherited Members
Namespace: DRIT.Mail.Rfc.Pop3
Assembly: DRIT.Mail.dll
Syntax
public sealed class Pop3Response
Constructors
View SourcePop3Response(bool, string, IReadOnlyList<string>)
Initializes a new instance of the Pop3Response class.
Declaration
public Pop3Response(bool success, string text, IReadOnlyList<string> bodyLines)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | success | Whether the response is +OK. |
| string | text | The text after the status indicator. |
| IReadOnlyList<string> | bodyLines | For multi-line responses, the de-dot-stuffed body lines. |
Properties
View SourceBodyLines
Gets the de-dot-stuffed body lines for multi-line responses.
Declaration
public IReadOnlyList<string> BodyLines { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Success
Gets a value indicating whether the response is +OK.
Declaration
public bool Success { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Text
Gets the text after the status indicator (+OK or -ERR).
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |