Templates / Mark bounced email addresses in a Google Sheet from bounce notices

Mark bounced email addresses in a Google Sheet from bounce notices

Ready for 3.0

by Lam Tonsing · 1 views · created 2025-11-05 · Ticket Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 6 nodes and runs when a new email arrives over IMAP. Along the way it connects Google Sheets.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Is it a bounce? (Filter): keeps only the items that match a condition
  2. Settings (Edit Fields (Set)): sets 3 fields: hard_label, soft_label, unknown_label
  3. Find bounced address (Code): runs custom JavaScript code
  4. Address found? (Filter): keeps only the items that match a condition
  5. Mark email as bounced (Google Sheets): update

Services it uses

Google Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

This works on a trigger for new incoming emails in a Gmail account and helps clean up the list. - Once workflow is activated the trigger is called as per the given time interval. - This will check for new emails and run them through a condition checking the…

Excerpt from Lam Tonsing's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.