mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 09:04:16 +00:00
feat(email): forward non-feed mail to FALLBACK_FORWARD_ADDRESS
Lets you point a domain's catch-all at the worker without losing personal mail: inbound mail that isn't a feed (invalid_address / feed_not_found) is forwarded to an optional verified destination instead of being dropped. Expired feeds and blocked senders are still dropped so newsletters never leak to the fallback inbox. Unset env keeps the original drop-and-log path. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
6cb036fe2c
commit
2c450817df
@@ -10,6 +10,9 @@ export interface Env {
|
||||
PROXY_TRUSTED_IPS?: string;
|
||||
PROXY_AUTH_SECRET?: string;
|
||||
FEED_TTL_HOURS?: string;
|
||||
// Optional catch-all fallback: non-feed inbound mail is forwarded here instead
|
||||
// of being dropped. Must be a *verified* Cloudflare Email Routing destination.
|
||||
FALLBACK_FORWARD_ADDRESS?: string;
|
||||
}
|
||||
|
||||
// Stored attachment metadata (bytes live in R2, keyed by id)
|
||||
|
||||
Reference in New Issue
Block a user