POP3 Constant Enumerations¶
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
keyto a member, folding astrto 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:
- Return type:
- Returns:
The member
keynames or carries.- Raises:
EnumKeyError – If
keynames no member and there is no usabledefault.EnumValueError – If
keyis not astrand there is no usabledefault.
- classmethod _validate_value(value)[source]¶
Reject
valueunless it is astr, as_missing_()does.- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valueis not astr.
- 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:
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
- classmethod get(key, default=NO_DEFAULT)[source]¶
Resolve
keyto a member, folding astrto upper case.A response code is read case-insensitively (RFC 2449 Section 8), and each member is valued its code in upper case.
- Parameters:
- Return type:
- Returns:
The member
keynames or carries.- Raises:
EnumKeyError – If
keynames no member and there is no usabledefault.EnumValueError – If
keyis not astrand there is no usabledefault.
- classmethod _validate_value(value)[source]¶
Reject
valueunless it is a code, as_missing_()does.- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valueis not astrof one or more levels separated by/, as theresp-codegrammar 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:
Footnotes