Move Dapier email receiving and sending to Relay
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with src/dapier/connectors/ingress.py, scripts/deploy.sh, and template.yaml, then read Relay's worker-contracts.md. Trace the outbound callers listed in the issue, including email_send, notifications, reports, and backup.py. Done means inbound and outbound workflows, authentication, feedback handling, configuration, tests, and documented rollback all pass end-to-end before Datamailer and direct SES paths are removed.
Written by the indexing model from the issue text.
Description
Goal
Move Dapier's email receiving and sending paths to Relay. Datamailer is the current integration used for the first [email protected] experiment, not the intended long-term service. Keep existing email workflows working throughout the cutover.
Current dependencies
- Inbound mail arrives via Datamailer's SNS topic and private S3 bucket, configured in
scripts/deploy.shandtemplate.yaml.src/dapier/connectors/ingress.pynormalizes theinbound-emailevent. - Dapier currently expects the inbound event to contain inline
bodyandattachments;[email protected]inserts{body.text.value}into its headless-agent prompt. Relay's current contract instead publishesinbound_message_idand araw_mimereference, with bodies and attachments stored privately. - Outbound paths include the
email_sendaction, workflow failure notifications, alarms/error digests, headless-task completion reports, and backup failure mail. Most call SES directly;src/dapier/backup.pycalls Datamailer's transactional API. - Email sender allow-list, reserved addresses, invoice/todo routes, SES bounce/complaint events, and the Console/CLI management surfaces also need to keep working.
Work
- Decide the Relay-to-Dapier inbound delivery and authentication contract. Provision Relay receiving addresses and move the SES receipt path, preserving current addresses and routes.
- Adapt Dapier's inbound normalizer and securely retrieve body text, raw MIME, and attachments from Relay's stored message. Preserve idempotency, replay, retention, and sender filtering. Require trustworthy sender authentication before allowing email to start an unrestricted headless agent.
- Move applicable outbound mail to Relay's transactional API. Close any gaps needed for attachments, HTML, reply threading, idempotency, delivery status, and SES feedback before switching each caller.
- Update configuration, IAM, tests, docs, and API/CLI/Console parity. Remove Datamailer-specific configuration and obsolete direct SES paths after their replacements are live.
- Test real inbound mail through
[email protected](including a Zoom link), invoice/todo flows, completion reports, other notifications, and bounce/complaint handling. Cut over with a rollback path, then verify delivery and queue health.
This is a follow-up issue; the current mail route should remain operational until the Relay path passes the end-to-end checks.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 6m
- Merged PRs (30d)
- 31
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DataTalksClub/dapier
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
DataTalksClub/dapier#22 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
DataTalksClub/dapier#9 · 2 comments ·
Maintainers usually reply within 1 day
All issues in DataTalksClub/dapier
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
btclib-org/btclib#3062 ·
Maintainers usually reply within 1 day
-
area:evals area:infra enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
jse-avl/support-bot#4 · 1 comment ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
qte77/agentic-job-offer-to-application-kit#487 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
btclib-org/btclib-wallet#801 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 94/100