email.received event with "provider": "imap".
IMAP sources need a Pro project.
Set up
Open Sources → Add source → IMAP mailbox and fill in the form. hooksnode runs a test poll before it saves. If the test fails, nothing is saved and you see the error.How it works
- Read only. hooksnode opens the folder in read-only mode. Mail stays unread.
- No old mail. The first poll records where the folder ends. It sends nothing.
- Batches. Each poll reads up to 50 messages. A longer backlog continues on the next poll.
- Large mail. A message over 10 MiB is sent with its headers only, and
truncated: true. - Folder reset. If the server resets the folder (
UIDVALIDITYchanges), hooksnode starts again at the end of the folder and shows The mail server reset this folder. - No duplicates. The idempotency key includes the message position, so a retried poll never sends a message twice.
Problems
A failed poll backs off: the interval doubles each time, up to 1 hour.