RFC 3834 header checks to stop email agents from looping with other bots
kumard3 · reddit · 2026-11-30
A developer shares how his email API prevents agents from getting stuck replying to other bots: every inbound email is checked against RFC 3834 before any model call.
- Skip senders whose local part starts with noreply, do-not-reply, mailer-daemon, postmaster, or bounce
- Skip when Auto-Submitted is anything other than "no", Precedence is bulk/junk/list/autoreply, or X-Auto-Response-Suppress, List-Id, or List-Unsubscribe headers are present, or spam check flags it
- Outgoing replies carry Auto-Submitted: auto-replied so RFC-compliant systems won't answer them
- Since headers only work if the other side sets them, there's also a hard cap: the agent stops after 5 sent messages per thread
A practical anti-loop pattern for any agent that automates email.
More from coding & agent
- Ship any LangGraph agent as an app inside ChatGPT and Claude with one config line — BraceSproul · 2026-11-30
- INK breaks down a video workflow built on Runway's node system — umpherj · 2026-11-30
- Orchestrating all your AI subscriptions: big tasks save 1/3 quota but run 2x slower — Ok-Community-7121 · 2026-11-30
- Self-hosted WhatsApp MCP turns Gemini into a fact-checker for Muse over chat — Disastrous_Joke_2470 · 2026-11-30
- SCRL proposes structured agent-to-agent language beyond natural language at scale — _AustinCalvert_ · 2026-11-30
- Ontology's real moat: OR, causal inference, org economics, experiment design — _AustinCalvert_ · 2026-11-30