RuleMembers

Cloudflare email to Telegram mail2tg Cursor rules

This Cursor rule file walks the assistant through forwarding a domain's email to Telegram using Cloudflare Email Routing, a Worker and the mail2tg CLI from npm. It is for developers who want messages sent to an address on their domain to arrive as Telegram messages.

What it does

Prerequisites are a domain on Cloudflare DNS, an API token with Zone Read, DNS Edit, Worker Scripts Edit and Email Routing Rules Edit scopes, a Telegram bot from BotFather that has received /start, and Node.js 20 or newer. The tool deploys a Worker that parses incoming mail and creates MX and SPF records.

How to use it

Cursor shows the plan first, then stops and waits for your approval.

Requirements and limits

Pin the mail2tg version only after reviewing the npm package and its source, as the rule says.

More in Rules and the Cursor library.

What it covers

  • Tool
  • Prerequisites
  • Plan-first workflow
  • Interactive workflow
  • What it does
  • Exit codes
  • Common issues

The full text is in the members library

Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.

Source and license

Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/cloudflare-email-telegram-cursorrules-prompt-file.mdc

Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.

Related entries