Repository navigation
feat(application): dissect POP3 over TCP port 110 (#2964) - #3206
Merged
Merged
Conversation
- POP3 (RFC 1939, RFC 2449) at TCP port 110: a segment reads as a response (single-line, or a whole multi-line one), an AUTH server challenge (RFC 5034), a command, or the end of a multi-line response, through the shared line reader, and rebuilds byte for byte. - A response code opening the text (RFC 2449 section 8) is decoded; text is UTF-8 (RFC 6856), parameters ASCII but for USER, PASS, APOP. - pcapkit.const.pop3: Command from a DATA literal (RFC 1939 section 9, CAPA, and the commands IANA's POP3 Capabilities registry adds), and ResponseCode crawled from IANA's POP3 Response Codes registry. - Registry entry, TCP dispatch family, docs pages and pins.
Documentation build overview
19 files changed ·
|
Owner
Author
|
Good to go at
|
Contributor
|
Coverage: 94.95% (unit tier, Python 3.15,
Per-file detail: the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please follow the guide below
Put an
xinto every box [ ] that applies to your pull request (like this: [x])Use the Preview tab to see how your pull request will look
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)Description of your pull request and other information
Closes #2964.
POP3 at TCP 110 (RFC 1939; RFC 2449), read through
pcapkit.utilities.lines(#2960). A segment is a response (a status line alone, or a whole multi-line response), anAUTHserver challenge (RFC 5034 section 4), a command, or the end of a multi-line response. A status line with more lines but no end staysRaw, as it may be pipelined responses (RFC 2449 section 6.6), as do status lines over 512 octets and commands over 255 (section 4).Scope:
status,text, andcode, the response code the text opens with (section 8), resolved by its longest registered prefix of levels. Text is UTF-8 (RFC 6856); parameters are ASCII but forUSER,PASSandAPOP(section 2.2). RFC 2449'stextgrammar admits no SP, so other text stays free text, as RFC 1939 has it.Naming: the package is
pop3, not the issue'spop: RFC 1939 and IANA's port 110 name it POP3, and POP2 (TCP 109) is another protocol.Consts:
Commandfrom aDATAliteral (RFC 1939 section 9,CAPA, and the commands IANA's POP3 Capabilities registry adds);ResponseCodecrawled from IANA's POP3 Response Codes CSV.Pins: TCP ports in
test_dispatch_bindings_unit.py(110 only), the index-registry table,EXCLUDED_FROM_INTENUM_CENSUSand the cut-headerOCTETS. The new tests fail onorigin/develop.