Skip to content

Unable to Search Emails by Updated Subject #60

@nitun

Description

@nitun

Reference Slack discussion— https://rtcamp.slack.com/archives/C08J7MR0R34/p1775481318238929

@rtCamp/team-sales / @yasnajadeja is facing an issue finding the email thread sometimes to link with leads or opportunity.

After debugging further and based on discussion with @shivamsn97 we identified it's an issue and can be resolved easily.

🐛 Bug Report

Description

Emails from the same sender are grouped into a single Gmail thread in Frappe, but searching by subject does not work as expected.

If a customer or team member sends emails with different subject lines, they are correctly linked to the same lead or opportunity. However, when searching within the Gmail thread using a new or updated subject, the results are not returned.

Currently, only the initial subject of the thread is searchable, making it difficult to locate emails with updated subjects.

[Provide a clear and concise description of the bug.]

Steps to Reproduce

  1. Go to Gmail Thread: https://[domainname]/app/gmail-thread/
  2. Search using a subject line.
  3. If there are multiple emails in the thread with different subjects, only the first subject returns results.
  4. Searching using the Gmail thread ID displays all emails. Opening individual emails shows updated subject lines that are otherwise not searchable.

All email subjects within a thread should be searchable.

Additional Notes

  • Applying a filter using “Subject (Single Email CT)” allows searching by individual email subjects and returns expected results.
  • This suggests the issue is specific to how subjects are indexed or searched within Gmail threads.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions