Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By danielrosehillv0.1.1MITIn 1 marketplace
Outbound email batching: mail to chosen recipients is held and released as one consolidated digest on a schedule or threshold, with an [URGENT] bypass. v0.2: Google Workspace rule + Cloudflare Worker intake.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
email, batching, outbound-queue, digest, middleware, client-updates
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Outbound email middleware: mail to certain people is held and sent to them as one consolidated digest on a schedule, instead of a stream of small messages. Write to the person's real address as you always do. If they're on the batched list, the message is quietly staged. Anything marked [URGENT] goes straight through.
It's for the boss who wants everything in one weekly briefing, or the partner who stopped reading email because you (and your AI agents) send ten a day. People and agents feed the same queue.
Status: v0.2 is being built (as a guide and a Worker). Intake is working and confirmed by live test. Release, digest and sending are still to come. The v0.1 git-backed CLI is described further down.
flowchart TD
S["Sender writes to the real address<br/>(you in Gmail, or an AI agent via the Gmail API)"]
R{"Workspace outbound rule:<br/>recipient on batched list<br/>AND subject lacks [URGENT]?"}
N["Recipient inbox<br/>(normal delivery)"]
E["Cloudflare Email Routing<br/>staging address, e.g. [email protected]"]
W["EmailBatcher Worker<br/>email handler"]
Q[("D1 queue, per recipient")]
C["Cron trigger: release policy due?<br/>(hourly / weekly slot / after N items)"]
L["LLM writes one digest"]
G["Send as the original account<br/>(Gmail API)"]
D["Recipient inbox<br/>(one digest)"]
S --> R
R -- "no" --> N
R -- "yes: change envelope recipient<br/>To: header unchanged" --> E
E --> W --> Q
Q -.-> C -.-> L -.-> G -.-> D
classDef todo stroke-dasharray: 5 5
class C,L,G,D todo
Solid lines are built and tested. Dashed lines are planned.
To: header still names the intended person, and the rule adds X-Gm-Original-To. That lets one staging address serve every recipient and every sending account (for example a personal and a business Workspace).email handler, which stores it in D1.Why the rule lives in Workspace: a Cloudflare Email Worker can only see mail addressed to a domain it handles. It can't sit in front of mail you send from Gmail to someone's gmail.com address. Google's routing layer can, but Workspace has no API that can write these rules. The Cloud Identity Policy API reads them and refuses writes. So setting it up is a guided manual step.
[email protected]. A spare domain or a subdomain keeps it away from your main domain's MX records.worker/ with GitHub Actions (.github/workflows/deploy-worker.yml). It needs repo secrets CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID, and repo variable EMAILBATCHER_D1_ID (create the D1 database first). Then add an Email Routing rule: staging address → Worker emailbatcher.workspace-intake-rule. It walks you or an agent through the Admin console: outbound, If ALL {any envelope recipient matches the batched list; subject does not contain [URGENT]} → Change envelope recipient to the staging address, plus Add X-Gm-Original-To header.[URGENT] message. The plain one should appear in the Worker's D1 table with To: intact; the urgent one should be delivered normally.agent), plus status and withdrawBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
email-batcher@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin email-batcher