diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-12 11:44:32 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-12 11:44:32 +0200 |
| commit | e298a5749ef80bef8f3240a6d73047b694d4dd36 (patch) | |
| tree | 82345e46e1894feff2dba5ac8a4d91c349268327 /post-new | |
| parent | f479318ea8f890122f2f28a7a224802dbf4e870b (diff) | |
| download | mailctl-e298a5749ef80bef8f3240a6d73047b694d4dd36.tar.gz mailctl-e298a5749ef80bef8f3240a6d73047b694d4dd36.zip | |
docs(rules): note why the hook's protected list differs from mailctl's
Two module-level constants with the same name in one repo, meaning
different things: mailctl.py's is a gate a human can override, the
hook's is a refusal because cron has no human to ask.
Diffstat (limited to 'post-new')
| -rwxr-xr-x | post-new | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -61,6 +61,10 @@ SCOPE = "tag:new" # 90 days" rule is a reasonable thing to want and would need this list revised. # When that day comes, the question to answer first is what confirms the rule # before it runs, not whether the guard is annoying. +# NOT the same list as mailctl.py's PROTECTED_REMOVALS, and the two must not be +# merged. That one is `{inbox}` and is a GATE: a human can override it with +# --confirm-destructive. This one is `{unread, inbox}` and is a REFUSAL, because +# there is no human present to confirm anything when cron runs a sync. PROTECTED_REMOVALS = frozenset({"unread", "inbox"}) |
