Core v0.1: parse, compose, threading, rules, sanitiser, search #1
Reference in New Issue
Block a user
Delete Branch "feature/core-v0.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
epistula-core v0.1: everything the app does with mail content, pure (no I/O, no clock, no randomness).
Tests (written first, commit
c59480awas red with 55 failing): compose 10, mime 16, sanitize 9, thread_rules_search 20 = 55 passed, 0 failed. They include proptest properties: parse never panics on bytes or MIME-like text (512 cases each), safe names are always safe (256), no sanitiser output contains<script,on*=orjavascript:(2000), parse(compose(x)) == x (300), threading is order-independent (256), and every query is valid FTS5 (500 + 256, checked in an in-memory SQLite).Self-review
:and=in text and attribute values are written as:/=. The literal property can't be met by accident: the corpus and the properties also decode the output and check every tag and attribute semantically (script/iframe/svg tags,on*attributes,javascript:/vbscript:/data:textin URL attributes, CSS that runs or loads). Mutant check: letting every href through makes the corpus test fail.url,expression,import,\, comments, quotes or braces. That loses some layouts, but it is safe.<style>blocks are removed entirely, so some newsletters will look plainer. Accepted for V1.=_ep_…, a sequence that never occurs in base64 or QP output).compose_is_deterministicchecks this.i;unicode-casemap, because Sieve's default comparator folds ASCII case only and the engine folds Czech too.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.