Skip to content

Commit f5620b6

Browse files
committed
Add note about fuzzy search
1 parent fe596fe commit f5620b6

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

_posts/2026-08-20-how-to-find-an-exact-gmail-thread-with-codex-or-claude.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ faq:
1313
answer: "No. Message-ID identifies one particular email. Gmail’s own threadId identifies the conversation that Gmail has grouped around that email."
1414
- question: "Does knowing a Message-ID give an AI access to an email?"
1515
answer: "No. The agent still needs an authorised Gmail connection to an account containing the email. A Message-ID improves lookup; it is not a password or proof of who sent the message."
16+
- question: "Do I need a Message-ID for every Gmail request?"
17+
answer: "No. A natural-language request is perfectly reasonable when a likely result is good enough. Use a complete Message-ID when later work depends on the agent finding one specific email."
1618
---
1719

1820
I was organising flights and accommodation around a [speaking
@@ -28,6 +30,16 @@ a mailbox, but they’re poor ways to name _an_ exact email. It turns out, the
2830
solution was already inside the email itself: its
2931
[`Message-ID`](https://www.rfc-editor.org/rfc/rfc5322.html#section-3.6.4).
3032

33+
Fuzzy requests are still safe and entirely natural. <q>Find the email about the
34+
Austin conference</q> is exactly how I’d expect anyone to use an LLM to search
35+
their inbox, and a likely match is usually all that the task needs. A fuzzy
36+
request can produce a fuzzy answer.
37+
38+
The stakes are raised when the next bit of work relies on one specific email
39+
being the right one. Booking travel, agreeing dates, approving costs, or making
40+
a decision from a _potential_ match is risky business! When the source needs to
41+
be exact, give the LLM its exact `Message-ID`.
42+
3143
A complete `Message-ID` gives the agent a precise email to find. Once Gmail
3244
finds that message, the agent can use Gmail’s own `threadId` to open the
3345
conversation around it. I tested this successfully with both Codex and Claude’s
@@ -152,7 +164,10 @@ thing inside data it can already access; it grants no access of its own.
152164

153165
{% include cross-sell.html %}
154166

155-
When the exact source matters, preserve the complete `Message-ID`, ask the agent
156-
to retrieve Gmail’s returned thread, then ask what you need to know. It takes
157-
a little more effort than asking ChatGPT to look up a subject line, but it gives
158-
the it one exact email to work from. Much safer!
167+
Fuzzy requests still belong in everyday email searches; ask ChatGPT to find
168+
the email about a subject when a likely match is enough. When later work depends
169+
on the answer, use the complete `Message-ID`, ask the agent to retrieve
170+
Gmail’s returned thread, then ask what you need to know.
171+
172+
It takes a little more effort, sure, but it gives the LLM one exact email to
173+
work from. Much safer!

0 commit comments

Comments
 (0)