• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
Pop3Response
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Pop3
Assembly: DRIT.Mail.dll
Syntax
public sealed class Pop3Response

Constructors

View Source

Pop3Response(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 Source

BodyLines

Gets the de-dot-stuffed body lines for multi-line responses.

Declaration
public IReadOnlyList<string> BodyLines { get; }
Property Value
Type Description
IReadOnlyList<string>
View Source

Success

Gets a value indicating whether the response is +OK.

Declaration
public bool Success { get; }
Property Value
Type Description
bool
View Source

Text

Gets the text after the status indicator (+OK or -ERR).

Declaration
public string Text { get; }
Property Value
Type Description
string
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX