Skip to content

Fix nested mailbox support, add bulk manage and list-children tools - #3

Open
rbowen wants to merge 1 commit into
LionSR:mainfrom
rbowen:fix-nested-mailboxes
Open

Fix nested mailbox support, add bulk manage and list-children tools#3
rbowen wants to merge 1 commit into
LionSR:mainfrom
rbowen:fix-nested-mailboxes

Conversation

@rbowen

@rbowen rbowen commented Apr 24, 2026

Copy link
Copy Markdown

This is kind of a big patch, and I apologize for that. My use case is that I use a LOT of folders and subfolders, and the MCP didn't seem to be able to find any of them. This patch does the following:

  • Added resolveMailboxPath() for nested IMAP folder traversal via .mailboxes.byName()
  • Patched searchInMailbox to use path resolution instead of flat enumeration
  • Patched moveEmails target resolution for nested paths
  • Removed 50-message scan cap for targeted mailbox searches (Perhaps this can be configurable, but that was way too restrictive for me.)
  • Added mail_bulk_manage tool: search+move+delete in one JXA call
  • Added mail_list_children tool: list subfolders via direct path traversal
  • Increased JXA timeout for large folder scans

- Added resolveMailboxPath() for nested IMAP folder traversal via .mailboxes.byName()
- Patched searchInMailbox to use path resolution instead of flat enumeration
- Patched moveEmails target resolution for nested paths
- Removed 50-message scan cap for targeted mailbox searches
- Added mail_bulk_manage tool: search+move+delete in one JXA call
- Added mail_list_children tool: list subfolders via direct path traversal
- Increased JXA timeout for large folder scans
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.

1 participant