DEV Community

NhatMinh
NhatMinh

Posted on

Find Sent Gmail Emails That Never Got a Reply (Search Tricks + a 20-Line Apps Script)

"Show me every email I sent last week that nobody answered." It sounds like a basic search, but Gmail has no has:noreply operator. Search matches messages, and a sent message looks the same whether or not someone replied later.

Here are four ways around it, from zero setup to fully automatic.

1. Search your Sent folder by date (manual, 30 seconds)

Gmail search operators get you a short list to scan:

in:sent older_than:3d newer_than:14d
Enter fullscreen mode Exit fullscreen mode

That's everything you sent between 3 and 14 days ago, which is the window where a follow-up makes sense. Narrow it to one person or company:

in:sent to:@acme.com older_than:3d
Enter fullscreen mode Exit fullscreen mode

With conversation view on, a thread that got a reply shows a message count next to the names. Single-message threads are your candidates. It works, but you're scanning by eye every time.

2. A "Waiting" label (manual, but reliable)

When you send something that needs an answer, add a label like Waiting to it. Because Gmail labels apply to the whole conversation, the reply lands in the same labelled thread. Once a week, open label:waiting, follow up on anything still unanswered, and remove the label from threads that are done.

The weakness is obvious: you have to remember to add it and to review it.

3. A Google Apps Script that labels unanswered threads for you

This is the developer-friendly option, and it's free. The idea: look at recent sent threads, and if the last message in the thread is from you, nobody has replied yet. Label it. If someone replied, remove the label.

  1. Go to script.google.com → New project.
  2. Paste this:
const LABEL = 'No reply yet'
const QUERY = 'in:sent older_than:3d newer_than:30d'

function labelUnanswered() {
  const me = Session.getActiveUser().getEmail().toLowerCase()
  const label = GmailApp.getUserLabelByName(LABEL) || GmailApp.createLabel(LABEL)
  const threads = GmailApp.search(QUERY, 0, 200)

  for (const thread of threads) {
    const messages = thread.getMessages()
    const last = messages[messages.length - 1]
    const waitingOnThem = last.getFrom().toLowerCase().includes(me)
    if (waitingOnThem) {
      thread.addLabel(label)
    } else {
      thread.removeLabel(label)
    }
  }
}
Enter fullscreen mode Exit fullscreen mode
  1. Click Run once and approve the Gmail permission prompt (it's your own script, running in your own account).
  2. Add a trigger: Triggers (clock icon) → Add Trigger → labelUnanswered, time-driven, day timer, pick an hour.

Now a No reply yet label in your sidebar always holds sent threads from the last month that are still waiting on someone. Tweak QUERY to change the window.

Caveats worth knowing:

  • Aliases. If you send from a "Send mail as" alias, getFrom() won't contain your main address. Replace the includes(me) check with a list of your addresses.
  • Auto-replies count as replies. An out-of-office reply removes the label. Usually fine, occasionally misleading.
  • Old threads keep the label. Once a thread falls outside newer_than:30d the script stops touching it. Clear old ones by hand, or widen the window.
  • Quotas. Consumer accounts have daily Apps Script limits for Gmail operations. A daily run over a few hundred threads stays well inside them.

4. Gmail's built-in Nudges

Settings → See all settings → General → Nudges → tick "Suggest emails to follow up on". Gmail will occasionally bump an old sent email back to the top of your inbox with a "Sent X days ago. Follow up?" note.

It's free and zero-effort, but Gmail chooses which emails and when. You can't say "remind me about this one in 5 days".

5. A per-email reminder (no code)

If you want to choose the exact email and the exact day, that's what follow-up reminder extensions do. I built one: Follow-Up Reminder for Gmail. Open a sent email, click Follow Up, pick 1, 3, 5, 7 or 14 days. If there's no reply by then, you get a desktop notification that opens the thread. When the reply shows up in your inbox (while Gmail is open), the reminder is marked as replied.

It stores everything locally in Chrome and doesn't use tracking pixels. (Disclosure: I'm the developer. Free for 10 follow-ups a month.)

Which one should you pick?

Need Use
A one-off check Search: in:sent older_than:3d newer_than:14d
A simple weekly habit Waiting label
Automatic and free, and you're comfortable with code The Apps Script above
"Just remind me sometimes" Gmail Nudges
"Remind me about this email on Friday" A reminder extension

If you improve the script (handling aliases, ignoring auto-replies), share it in the comments and I'll add it to the post.

Top comments (0)