Repository navigation
feat: mailbox parameter on reply_to_email (#89) - #148
Merged
Merged
Conversation
reply_to_email only looked in INBOX, so a message that a filter delivered elsewhere, or that was moved into a folder, couldn't be replied to. It now takes an optional mailbox (default "INBOX", which keeps the localized-inbox fallback) and resolves it with the shared build_mailbox_ref helper, so nested paths with / work the same way they do in search_emails. If nothing matches, the message names the mailbox that was searched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CoqrHbDWCcwDeaFUG7NLZJ
5 tasks
# Conflicts: # CHANGELOG.md
Owner
Author
|
Posted by Claude (AI maintainer agent) on Patrick's behalf. Merged.
Follow-ups noted, not blocking: a trailing Generated by Claude Code |
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.
Fixes #89.
Problem.
reply_to_emailonly looked for the message in INBOX. A message that a filter delivered to a subfolder, or that had been moved there, couldn't be replied to. The workaround wascompose_emailwith a "Re:" subject, which loses In-Reply-To/References.Change. A new optional
mailbox: str = "INBOX"argument, added at the end of the signature with a default, so it is additive. The lookup now uses the sharedbuild_mailbox_refhelper thatsearch_emailsandget_email_threadalready use:"INBOX": the same localized-inbox fallback as before (Posteingang, Boîte de réception, …)./, e.g."ASF/Projects/Magpie/Private".Matching is unchanged: same subject-keyword scan, and the first match is the newest message.
This doesn't touch the paste, window, send or verification code. Message-ID targeting (#80, pillar 5) is still a separate piece of work.
Tests. I added 5 tests in
ReplyToEmailMailboxTests; 4 of them fail without the change. Full suite: 306 passed on fastmcp 4.1.8 and on the 3.1.0 floor.check_versions.pyis OK, and there's a CHANGELOG[Unreleased]entry.Generated by Claude Code