Collapse message copies and join threads across accounts #92
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-imap-mailmind-mcp-59-collapse-cross-account-copi-2fbf221e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Collapse filter-passing copies by Message-ID, From and normalized Date. Prefer inbox rows, report copy counts, deduplicate keyword and semantic rankings, exclude all copies from similar_to, and count messages once in people, evidence and triage. Join threads across accounts through copies in one hop. Update tool documentation and add 25 regression tests.
Validation: make check passes; baseline 308 passed, final 333 passed, both with 4 skipped. Package build and source-import guard pass. Keyword ranking uses GROUP BY with MIN(f.rank).
Benchmark medians on the same 105,000-row store: unfiltered 61.9 -> 292.7 ms (4.73x); common-word search 65.4 -> 317.9 ms (4.86x). Both satisfy the approved performance limits.
Closes #59
Co-Authored-By: gpt-6.1-sol noreply@openai.com