#cloudflare-workers #sieve #worker #routing #convert #run

app sieve2workers

Convert a Sieve program into a Cloudflare Workers for Cloudflare Email Routing

3 releases

0.1.2 Apr 27, 2024
0.1.1 Apr 26, 2024
0.1.0 Apr 26, 2024

#67 in Email

MIT and AGPL-3.0-only

33KB
855 lines

sieve2workers

Convert a Sieve program into a Cloudflare Workers for Cloudflare Email Routing.

Install

cargo install sieve2workers

Usage

sieve2workers input.sieve

Cloudflare Worker:

import { run } from "/path/to/output.js"

export default {
  async email(message, env, ctx) {
    await run({ message });
  }
}

Dependencies

~6–15MB
~153K SLoC