POP3 Constant Enumerations

POP3_Command

POP3 Commands [*]

POP3_ResponseCode

POP3 Response Codes [†]

Added in version 1.10.0.

POP3 Command

Generated from pcapkit.vendor.pop3.command.Command.

class pcapkit.const.pop3.command.Command(*values)[source]

Bases: EnumRegistry, aenum.StrEnum

[Command] POP3 Command

USER = 'USER'

USER name [RFC 1939 Section 7]

PASS = 'PASS'

PASS string [RFC 1939 Section 7]

QUIT = 'QUIT'

QUIT [RFC 1939 Section 4][RFC 1939 Section 6]

STAT = 'STAT'

STAT [RFC 1939 Section 5]

LIST = 'LIST'

LIST [msg] [RFC 1939 Section 5]

RETR = 'RETR'

RETR msg [RFC 1939 Section 5]

DELE = 'DELE'

DELE msg [RFC 1939 Section 5]

NOOP = 'NOOP'

NOOP [RFC 1939 Section 5]

RSET = 'RSET'

RSET [RFC 1939 Section 5]

APOP = 'APOP'

APOP name digest [RFC 1939 Section 7]

TOP = 'TOP'

TOP msg n [RFC 1939 Section 7]

UIDL = 'UIDL'

UIDL [msg] [RFC 1939 Section 7]

CAPA = 'CAPA'

CAPA [RFC 2449 Section 5]

STLS = 'STLS'

STLS [RFC 2595 Section 4]

AUTH = 'AUTH'

AUTH mechanism [initial-response] [RFC 5034 Section 4]

UTF8 = 'UTF8'

UTF8 [RFC 6856 Section 2.1]

LANG = 'LANG'

LANG [RFC 6856 Section 3]

classmethod get(key, default=NO_DEFAULT)[source]

Resolve key to a member, folding a str to upper case.

Command keywords are not case-sensitive (RFC 1939 Section 3), and each member is named, and valued, its keyword in upper case.

Parameters:
  • key (Any) – Key to get enum item.

  • default (Any) – An already-registered value to fall back to, as get() takes it.

Return type:

Command

Returns:

The member key names or carries.

Raises:
classmethod _validate_value(value)[source]

Reject value unless it is a str, as _missing_() does.

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value is not a str.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (str) – Value to get enum item, matched case-insensitively against the member names (RFC 1939 Section 3). A keyword no member names resolves to an unregistered member named after it in upper case and valued as given (#860).

Return type:

Command

POP3 Response Code

Generated from pcapkit.vendor.pop3.response_code.ResponseCode.

class pcapkit.const.pop3.response_code.ResponseCode(*values)[source]

Bases: EnumRegistry, aenum.StrEnum

[ResponseCode] POP3 Response Code

LOGIN_DELAY = 'LOGIN-DELAY'

LOGIN-DELAY, in -ERR responses [RFC 2449]

IN_USE = 'IN-USE'

IN-USE, in -ERR responses [RFC 2449]

SYS_PERM = 'SYS/PERM'

SYS/PERM, in -ERR responses [RFC 3206]

SYS_TEMP = 'SYS/TEMP'

SYS/TEMP, in -ERR responses [RFC 3206]

AUTH = 'AUTH'

AUTH, in -ERR responses [RFC 3206]

UTF8 = 'UTF8'

UTF8, in -ERR responses [RFC 6856]

classmethod get(key, default=NO_DEFAULT)[source]

Resolve key to a member, folding a str to upper case.

A response code is read case-insensitively (RFC 2449 Section 8), and each member is valued its code in upper case.

Parameters:
  • key (Any) – Key to get enum item.

  • default (Any) – An already-registered value to fall back to, as get() takes it.

Return type:

ResponseCode

Returns:

The member key names or carries.

Raises:
classmethod _validate_value(value)[source]

Reject value unless it is a code, as _missing_() does.

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value is not a str of one or more levels separated by /, as the resp-code grammar of RFC 2449 Section 3 has them inside its brackets.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (str) – Value to get enum item, matched case-insensitively and by its longest prefix of whole levels that a member carries, since a client ignores the levels it does not know (RFC 2449 Section 8). A code no such prefix matches resolves to an unregistered member named after it in upper case and valued as given (#860).

Return type:

ResponseCode

Footnotes