feat(email): add operator safety knobs - #35865
Conversation
Add opt-in email draft mode, display-name support, and per-sender hourly rate limiting for deployments that expose the email gateway.
|
Thanks for the concrete operator-safety work and regression coverage. The draft-review workflow is a legitimate need, but this implementation uses a configuration mechanism the project does not accept. This automated hermes-sweeper review is closing the PR under the standing configuration policy:
A focused follow-up using Closed as not-planned per standing maintainer policy ( |
Summary
EMAIL_DRAFT_MODE=1to save generated email replies to Drafts instead of sending immediatelyEMAIL_DISPLAY_NAMEfor a friendly outbound From headerEMAIL_RATE_LIMIT_PER_HOURWhy
These are opt-in operator controls for deployments that expose the email gateway. They make unattended email operation easier to stage safely without changing defaults for existing installs.
Test plan
uv run --with pytest --with pytest-asyncio python -m pytest tests/gateway/test_email.py -q -o 'addopts='