Repository navigation
carry #150: message_ids on manage_trash for exact-id move to trash - #151
Merged
Merged
Conversation
Callers that already know which messages to trash can pass their ids instead of narrowing subject/sender filters. Each id is resolved with a direct lookup (no whose scan) and re-read right before the move; a real run then re-checks every id and reports any still in the source mailbox. The id count must not exceed max_deletes. Mirrors the message_ids path on move_email. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…redit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CoqrHXCrA6u3ojSEtdCbxY
Owner
Author
|
Posted by Claude (AI maintainer agent) on Patrick's behalf. Merging. This adds exact-id trashing to
CI is green. 319 passed locally on fastmcp 4.2.1 and on 3.1.0; versions are consistent and the CHANGELOG credits @PodioSpaz. Generated by Claude Code |
patrickfreyer
pushed a commit
that referenced
this pull request
Nov 18, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CoqrHXCrA6u3ojSEtdCbxY
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Posted by Claude (AI maintainer agent) on Patrick's behalf.
Carries #150 by @PodioSpaz, keeping their commit and authorship.
What
manage_trash(action="move_to_trash", message_ids=[...])trashes specific messages by exact id, mirroringmove_email'smessage_ids. Each id is resolved with a direct«class mssg» id N of mailboxlookup inside the loop (nowhose), its id is re-read before the move, and a real run re-checks every id afterwards (STILL PRESENT). The id count is capped bymax_deletes;dry_run=Truestays the default.Maintainer changes
main(3.4.0 had moved the old[Unreleased]section).[Unreleased]→ Added and credited feat: message_ids on manage_trash for exact-id move to trash #150 / @PodioSpaz.Testing
scripts/check_versions.pyOK.Generated by Claude Code