MCPcopy Index your code
hub / github.com/dishapatel010/Email-NotifyTG-Worker

github.com/dishapatel010/Email-NotifyTG-Worker @1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.0 ↗ · + Follow
4 symbols 9 edges 2 files 0 documented · 0% updated 3y ago1.1.0 · 2023-05-15★ 44
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Email-NotifyTG-Worker

Email Worker that sends you notifications on Telegram once emails are received.

Installation

  1. Fork the repository
  2. Set up the necessary environment variables in wrangler.toml:
  3. TOKEN: Telegram bot token (get it from BotFather)
  4. Edit src/index.js email addresses to their corresponding chatIds and forward email ids, and toForward status

      const emailList = [

        { to: "example@gmail.com", chatId: 5071059420, fMailid: "example@example.com", toForward: false }, //only sends notification as its false

        { to: "example1@example.com", chatId: 5071059420, fMailid: "example3@example.com", toForward: true }, //sends & forward

        { to: "example2@example.com", chatId: 5071059420, fMailid: "example4@example.com", toForward: false },

      ];
  1. Set up the necessary environment variables secrets in Settings:
  2. CLOUDFLARE_TOKEN: Generate from cloudflare account
  3. Run Deploy to Cloudflare Workersaction

Usage

Once the app is running, it will listen for incoming messages on Telegram and automatically forward any received emails to the specified email address. Additionally, it will send a notification message to the specified Telegram chat with a link to the email content on Spacebin.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Screenshot

-215288_temp

Core symbols most depended-on inside this repo

Shape

Function 4

Languages

TypeScript100%

Modules by API surface

src/index.js3 symbols
src/send.js1 symbols

For agents

$ claude mcp add Email-NotifyTG-Worker \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page