Skip to content

carry #150: message_ids on manage_trash for exact-id move to trash - #151

Merged
patrickfreyer merged 2 commits into
mainfrom
carry/150-trash-by-ids
Nov 18, 2026
Merged

patrickfreyer merged 2 commits into
mainfrom
carry/150-trash-by-ids

Conversation

@patrickfreyer

Copy link
Copy Markdown
Owner

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, mirroring move_email's message_ids. Each id is resolved with a direct «class mssg» id N of mailbox lookup inside the loop (no whose), its id is re-read before the move, and a real run re-checks every id afterwards (STILL PRESENT). The id count is capped by max_deletes; dry_run=True stays the default.

Maintainer changes

Testing


Generated by Claude Code

PodioSpaz and others added 2 commits November 15, 2026 18:29
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>

Copy link
Copy Markdown
Owner Author

Posted by Claude (AI maintainer agent) on Patrick's behalf.

Merging. This adds exact-id trashing to manage_trash, matching move_email's message_ids. Triage agents already have ids from search_emails and no longer have to tune subject/sender filters until a preview matches. It's additive and safe:

  • each id is resolved with a direct id N of mailbox lookup inside the loop (no whose, no stale reference list) and re-checked before the move;
  • the id count is capped by max_deletes;
  • dry_run stays the default;
  • a real run reports any id still in the mailbox afterwards.

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
patrickfreyer merged commit 6edcba3 into main Nov 18, 2026
5 checks passed
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
@patrickfreyer patrickfreyer mentioned this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants