Commit Graph

7 Commits

Author SHA1 Message Date
wienen e062db2fb6 Add explicit sorter account flag
The prompts used to arrive at this change since the previous commit

For what account is this working?
Add the account name flag

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

config.py already supported --account globally; verplaats_bestaand.py now documents, validates, and displays the selected account explicitly.
2026-07-04 16:40:06 +02:00
wienen 8712052332 Handle IMAP aborts during sorter dry runs
The prompts used to arrive at this change since the previous commit

I have run the previous version of verplaats_bestaand. The results are in verplaats_bestaand.log and I got the following error message: imaplib.IMAP4.abort: command: UID => Server shutting down.

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

The user-run dry-run reached INBOX.Archief.2022.verzonden before the server closed the IMAP connection. Codex did not run live mailbox scripts; reconnect handling was verified with a fake local IMAP object.
2026-07-04 16:37:41 +02:00
wienen f44c363025 Harden mail move audit logging
The prompts used to arrive at this change since the previous commit

Read restart_prompt.md first, then continue from there.

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

No mailbox-affecting scripts were run by Codex. A generated dry-run transcript appeared locally as verplaats_bestaand.log and is now ignored via *.log.
2026-07-04 16:33:58 +02:00
wienen 33005a7cde 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.
2026-07-04 16:28:25 +02:00
wienen eb53bc123a Extract shared mail routing and IMAP folder helpers
Prompt since previous commit: execute step 1

Centralized route targets, source-folder policy, and modified UTF-7 mailbox quoting. Verification: py_compile, route/folder consistency, and git diff --check passed.
2026-07-04 12:23:14 +02:00
wienen 9c7ba6fa5d Treat only processed invoices as already sorted
Prompts used since the previous commit:

- User said they do not want final destination folders in Archief.
- User clarified: only treat INBOX.Facturen - verwerkt as already sorted; treat all other mailboxes as sources except Sent, Drafts, Trash and Spam.

Special observations:

- Updated source-folder selection accordingly.
- Removed Archief final destination creation and added Technisch destination folders.
- Verified Python compilation and route/folder consistency.
2026-07-04 12:07:27 +02:00
wienen 4780c18d70 Initial commit
Claude has done a lot of work, but there are still some errors which
cause the mails to be distributed to wrong mail boxes. I am now going to
let codex and claude compete. They will have their own branches and
merge to main as soon as we are somewhere where we can switch AI.
2026-07-04 11:18:05 +02:00