diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-12 11:40:27 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-12 11:40:27 +0200 |
| commit | f2feb50773b945aafed896b7d75e66035315aa5b (patch) | |
| tree | 0d41cd7ab1c5a7f27e270ae50354170bba56dfc0 /mailrules.py | |
| parent | 7ecd9056f7b0f8261b44f7865f45749fbceb5d39 (diff) | |
| download | mailctl-f2feb50773b945aafed896b7d75e66035315aa5b.tar.gz mailctl-f2feb50773b945aafed896b7d75e66035315aa5b.zip | |
test(rules): verify the hook against a throwaway database
Covers what unit tests cannot: that a rule tags only what it matches,
that stage order decides what a later rule can see, that a failed rule
leaves tag:new in place, that a disjunction stays inside its scope, and
that a rule removing a protected tag is skipped whole while the run
continues and still consumes the marker.
Three of those were confirmed to fail against a deliberately broken
implementation: unparenthesised scoping, a guard that stripped only the
protected removals, and a guard that aborted the run.
Diffstat (limited to 'mailrules.py')
0 files changed, 0 insertions, 0 deletions
