Name and sort Roundcube Sieve rules

The prompts used to arrive at this change since the previous commit

User wanted Roundcube filters to have meaningful names, ordered alphabetically, with financial filters first, while keeping invoice handling as one dynamic variable rule.

Any special observations that may be relevant for version management for this version. Be brief.

mailcat_roundcube.sieve now uses # rule names, puts the dynamic invoice rule first, sorts remaining rules by name, and disambiguates duplicate destinations with Mailing-list/Domain suffixes. sievec validation passed locally. roundcube.txt, verplaats_log.json, and plan.md were left unstaged.
This commit is contained in:
2026-07-05 13:03:30 +02:00
parent 35d78a27aa
commit db209ac246
2 changed files with 1416 additions and 1413 deletions
+1413 -1413
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -86,6 +86,8 @@ Roundcube/Sieve:
- `mailcat_roundcube.sieve` is generated from `mailinglist_routes.json` first, then `domain_routes.json`, matching Python routing order after invoice detection.
- It includes `Afmelden.*` routes and uses `fileinto` without `:copy`, so matching incoming messages are sorted instead of duplicated.
- It uses `INBOX.`-prefixed mailbox names because the user's Roundcube export used `fileinto :copy "INBOX.Notes";`.
- Rules have Roundcube-compatible `# rule:[...]` names. Financial rules are first; the invoice rule remains one dynamic quarter rule, then remaining financial rules and all other rules are alphabetically ordered by rule name.
- Duplicate destination names are disambiguated with `/ Mailing-list` or `/ Domain` suffixes.
- Historical mailbox reordering still requires `verplaats_bestaand.py`; Sieve only affects new incoming mail after activation.
Historical sorting:
@@ -250,6 +252,7 @@ git diff --check
```
After the plain-mode stop wrapper change, `bash -n deploy_vps.sh` was rerun successfully.
After adding sorted Roundcube rule names, `sievec -c /tmp/mailcat-sieve-test/dovecot.conf mailcat_roundcube.sieve /tmp/mailcat_roundcube.svbin` was rerun successfully with Dovecot 2.4.0.
Useful routing sanity check: