Extends searchEmailsGlobal and searchEmails to also search in email_notes.note_text via a JOIN on message_id/account_id
Adds a private _searchEmailsByNotes helper that runs a LIKE-based query and merges results with the existing FTS5 matches (deduplicating by email ID)
Updates the docstring for searchEmailsGlobal to mention notes
Test plan
Added searchEmailsGlobal includes emails matched by note text — verifies an email with no matching subject is returned when its note contains the query word
Added searchEmails includes emails matched by note text in mailbox — verifies mailbox filtering works for note-matched results (email in Sent does not appear in INBOX search)
## Summary
- Extends `searchEmailsGlobal` and `searchEmails` to also search in `email_notes.note_text` via a JOIN on `message_id`/`account_id`
- Adds a private `_searchEmailsByNotes` helper that runs a `LIKE`-based query and merges results with the existing FTS5 matches (deduplicating by email ID)
- Updates the docstring for `searchEmailsGlobal` to mention notes
## Test plan
- [x] Added `searchEmailsGlobal includes emails matched by note text` — verifies an email with no matching subject is returned when its note contains the query word
- [x] Added `searchEmails includes emails matched by note text in mailbox` — verifies mailbox filtering works for note-matched results (email in Sent does not appear in INBOX search)
- [x] Existing FTS5 search tests remain green
Closes #488
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
searchEmailsGlobalandsearchEmailsto also search inemail_notes.note_textvia a JOIN onmessage_id/account_id_searchEmailsByNoteshelper that runs aLIKE-based query and merges results with the existing FTS5 matches (deduplicating by email ID)searchEmailsGlobalto mention notesTest plan
searchEmailsGlobal includes emails matched by note text— verifies an email with no matching subject is returned when its note contains the query wordsearchEmails includes emails matched by note text in mailbox— verifies mailbox filtering works for note-matched results (email in Sent does not appear in INBOX search)Closes #488
🤖 Generated with Claude Code