Commit Graph

10 Commits

Author SHA1 Message Date
wienen edcad4560c Harden historical sorter header parsing
The prompts used to arrive at this change since the previous commit

User asked to check the audit log in the current directory before reordering the real mailbox.

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

The inspected log was a partial real backup run, not a hans audit. Header parsing now skips non-bytes FETCH payloads instead of aborting. verplaats_log.json and plan.md were left unstaged.
2026-07-05 11:48:09 +02:00
wienen e6cd5f0268 Handle non-tuple IMAP fetch responses
The prompts used to arrive at this change since the previous commit

Ik krijg de volgende foutmelding: AttributeError: 'int' object has no attribute 'decode' while running verplaats_bestaand.py --account backup --uitvoeren.

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

The actual backup run modified local verplaats_log.json with processed INBOX UID entries; that run-state was intentionally not committed. Rerunning should preserve it so already logged moves are skipped.
2026-07-04 17:28:35 +02:00
wienen d82f9792f0 Add sorter progress counters
The prompts used to arrive at this change since the previous commit

Add a counter to the verplaats_bestaand file

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

Audit mode now reports folder position and scanned message progress every 250 messages without running live mailbox scripts from Codex.
2026-07-04 16:42:18 +02:00
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