Latenode

Automatically sync IMAP emails to a Google Sheets spreadsheet

This template runs on a schedule, connects to your mailbox over IMAP from a JavaScript node, and appends each new message as a Google Sheets row.

Put the IMAP host, username, and password in that JavaScript node. Connect Google Sheets and keep a message id on the row so later runs skip mail you already logged.

Updated Sep 16, 2026Est. run: 6sEst. cost: $0.0003
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns new IMAP mail into spreadsheet rows on a schedule
  • Reads the mailbox from JavaScript with IMAP details in that node
  • Logs subject, sender, date, and a snippet
  • Keeps a message id on the row so later runs skip repeats

How it works

1
Trigger

Run on a schedule

The scenario starts on the interval you set, such as every 15 minutes.

2
Logic

Read the mailbox

JavaScript lists new messages over IMAP and maps subject, sender, date, and a short snippet. Put the IMAP host, username, and password in that node.

3
Action

Append the sheet

Google Sheets writes a row per message, including the message id so later runs can skip repeats.

Setup guide

1

Set the schedule

Add a schedule trigger and pick how often the mailbox should be checked.

2

Store IMAP access

Add a JavaScript node. Put the IMAP host, port, username, and password there. List recent messages from the folder you care about, such as INBOX.

3

Connect Google Sheets

Add a Google Sheets connection. Use a sheet with columns for message id, date, from, subject, and snippet.

4

Skip mail you already logged

Search the sheet by message id before you append. Add a row only when that id is new. Run once and confirm the first messages land in the sheet.

Requirements

IMAP host, username, and password stored in the JavaScript node
IMAP enabled on the mailbox
A Google Sheet Latenode can append rows to

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.