Repository navigation
#851 follow-up: a stopped rename writes no more, and a change is never sent again by itself - #1812
Conversation
…is never sent again by itself - In batch mode the owner's stop is looked at between the batch of reads and the batch of changes: what was to be written waits for a later run, and the run is said to be stopped. - A change of an item's categories is asked once. One that got no answer, or that a busy server put off, is left for a later run, which reads the item again, instead of being sent again with the list it was built from. Human-reviewed, AI-assisted, nobody's mailbox harmed.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
There was a problem hiding this comment.
🤖 Automated review of 636d6b1
The production change reads correctly from the diff: the stop flag is checked between the read and write $batches, items cut by a stop are left as Said::Later rather than written, and both write paths now ask once (Kind::Once) so a deferred or unanswered change is re-read on a later run instead of being replayed with a stale category list. I found no defect in the rename logic itself; the only issues are in how one of the new tests proves its case and a small redundancy in the new module doc text.
No issues found.
✅ Approved: no unresolved findings at [P2] MAJOR or above.
2 lower-priority or previously reported findings were omitted.
Model deepseek-v4.1-flash:cloud · skill code-change-review · 2 files reviewed. Reply to an inline comment to discuss it.
benandez
left a comment
There was a problem hiding this comment.
Thanks @kartas39, approving. The stop check now sits between the reads and the writes, items about to be written become "later", and a stopped run ends without counting as done. Both new tests are good. CI green on all three platforms.
Optional: writes now use Kind::Once, so a connection error before the request left is no longer retried inside the run. It becomes "stuck" and counts toward MAX_RENAME_TRIES (10) when the run changed nothing. On a very flaky network that could give a rename up sooner than before. Seems a fair price for avoiding the stale-list overwrite.
…tch translations Human-reviewed, AI-assisted, nobody's mailbox harmed.



Follows #1715: the P3 note in the approving review, and one more of the same kind as that pull request's blocker. The issue is #851 (closed).
What changes for the person using MailCraft
How it was checked
New tests in
crates/net/src/graph/recategorize_tests.rs; both fail onmain(98e5305).No release-notes line: Categories: after I rename a category, my older mail on the server keeps the old name #851 is not in a release yet, and its line covers this.
Code owners' path:
crates/net/.cargo xtask cipassesA crash or data-loss fix has its regression test
"Allow edits by maintainers" is ticked (the box beside Create pull request)
I have signed the CLA, or will by commenting on this pull request
Human-reviewed, AI-assisted, nobody's mailbox harmed.
Summary by CodeRabbit