Add sorter progress counters

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

User asked to add a counter to verplaats_bestaand.

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

Dry runs now show planned move counters, and execution summaries distinguish planned, moved, no-match, skipped, and failed messages. No mailbox-affecting scripts were run.
This commit is contained in:
2026-07-04 16:28:25 +02:00
parent 701be98d47
commit 33005a7cde
2 changed files with 54 additions and 6 deletions
+3
View File
@@ -76,6 +76,9 @@ Scripts using shared IMAP folder handling:
- `MAP_RENAMES` is intentionally empty.
- Source folders are selected by shared `list_folders()` plus `mail_routes.is_source_folder()`.
- Step 2 routes all eligible source folders, not just `INBOX`.
- Step 2 now reports counters per folder and in total: planned moves, actual moves when executing, no-match messages, skipped messages, and fetch/move failures.
- Dry runs now report `Gepland` counters instead of misleadingly showing zero moved.
- Step 3 invoice-quarter sorting also reports planned/moved/failure counters.
- Move success requires both `UID COPY` and `UID STORE +FLAGS \Deleted` to return `OK`.
- Step 3 no longer treats `INBOX.Facturen - verwerkt` as a source.
- IMAP mailbox names are consistently quoted and encoded through `imap_utils.quote_mailbox()`.