Steps
Create an app password
Gmail: turn on 2-step verification, then Google Account → Security → App passwords. Outlook and iCloud have the same option. The script only reads headers, read-only.
Download the free agent
Get the unanswered email nudger. It's one Python file with no dependencies, plus an n8n workflow for Gmail.
Try it on the samples
Run
python3 unanswered_email_nudger.py --eml-dir sample_emails --dry-run. Of five sample emails, only the quote nobody answered is listed.Point it at your mailbox
Set
IMAP_HOST,IMAP_USER,IMAP_PASSWORDandDAYS=3. The Sent folder is auto-detected. Gmail users who archive replies should addREPLY_FOLDERS=INBOX,[Gmail]/All Mail.Get the list every weekday
Schedule it with cron (
0 8 * * 1-5) and setEMAIL_TOto your own address. See running a script on a schedule.
How it knows nobody replied
Every email has a Message-ID. Replies carry it in their In-Reply-To or References header. The script matches those, and falls back to “same person, same subject” for mail clients that drop headers. If you already sent a follow-up in the thread, the original is no longer listed.
Why it doesn't send follow-ups automatically
An automatic “just bumping this” to a client is risky: wrong tone, wrong timing, or a reply that came by phone. The agent gives you the list; you decide.
Skip the setup: free download
The Unanswered email nudger agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.
Get the free Unanswered email nudger agent → Or have us build yours →
FAQ
Does it mark emails as read?
No. Folders are opened read-only and only headers are fetched with BODY.PEEK.
Does it work with Outlook or Microsoft 365?
Yes, over IMAP (outlook.office365.com) with an app password, if your organisation allows IMAP.
Can it run in n8n?
Yes. The included workflow uses the Gmail node and does the same thread matching.
Related guides
- n8n Chat Trigger not working? 25 tests, every error decoded
- n8n Compare Datasets not working: everything in A only, no matches and fixes, 40 runs
- n8n Date & Time node not working: Invalid date format, wrong day and lost fields, 41 runs
- n8n error workflow not triggering? 17 tests of the Error Trigger
- n8n GraphQL node not working: variables, errors, 401, 34 runs
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes