Commit graph

17 commits

Author SHA1 Message Date
squidd
d2adddc8a7 Merge pull request 'Milestone 2: moderation, subscribe/unsubscribe confirmation, VERP bounces' (#6) from feat/m2-moderation-subscribe-bounce into main 2026-11-09 15:06:29 +01:00
tgiachi
ad58789630 feat(api): list policies, held queue and member bounce state
- Add post_policy and join_policy to lists, patchable per field
- Add held message listing, approve and discard endpoints
- Expose disabled and bounce_count on members
- Reject '+' in list names, it is the command separator
- Wire the router release into the daemon
- Update OpenAPI description and README
2026-11-09 15:05:11 +01:00
tgiachi
966b3e0234 feat(ingest): dispatch command addresses and held mail
- Route +join, +leave, +confirm and +bounce addresses before list posts
- Accept held mail without relaying it
- Map invalid tokens and closed lists to 550
2026-11-09 15:04:56 +01:00
tgiachi
91c01bcb83 feat(router): moderation, confirmation commands and VERP bounces
- Hold posts on moderated lists and release them on approval
- Add +join, +leave and +confirm-TOKEN command addresses
- Send one message per recipient with a signed bounce envelope sender
- Disable members after 3 hard bounces and skip them on delivery
- Reject forged bounce addresses and tokens from other lists
2026-11-09 15:04:26 +01:00
tgiachi
9eb4d14a70 feat(store): schema v2 with moderation, pending requests and bounce state
- Add member id, disabled flag and bounce counter
- Add per-list post and join policies
- Add held message queue
- Add expiring, rate-limited pending subscribe and unsubscribe tokens
- Add persistent HMAC secret
- Migrate databases created by milestone 1
2026-11-09 15:03:08 +01:00
squidd
131299dc0c Merge pull request 'REST API for administration' (#4) from feat/rest-api into main 2026-11-09 14:58:20 +01:00
tgiachi
1ba42316fd feat: wire REST API into the daemon and document it
- Add api.listen config; token comes from PARSIMONY_API_TOKEN
- Disable the API when the token is not set
- Add OpenAPI description and README usage
2026-11-09 14:57:57 +01:00
tgiachi
7ce6a1c98e feat(api): REST API for lists and members
- Add /api/v1 JSON endpoints: lists CRUD, members add/list/remove, health
- Protect routes with a constant-time bearer token check
- Reject unknown JSON fields and invalid names or addresses
- Map store errors to 404 and 409
2026-11-09 14:57:43 +01:00
tgiachi
e1b0c7666c feat(store): list update, delete, listing and member removal
- Add ListLists, GetList, UpdateList, DeleteList, RemoveMember
- Add ErrExists for duplicate lists
2026-11-09 14:57:13 +01:00
squidd
2b77cb7c05 Merge pull request 'Milestone 1: LMTP ingest and end-to-end discussion list' (#3) from feat/m1-ingest-fanout into main 2026-11-09 14:56:23 +01:00
tgiachi
28d22d51de feat: daemon entrypoint, YAML config and Dockerfile
- Add config loader with defaults and strict unknown-field rejection
- Add cmd/parsimony wiring store, router, relay and LMTP server
- Handle SIGINT and SIGTERM for graceful shutdown
- Add Dockerfile and example config
2026-11-09 14:55:38 +01:00
tgiachi
87744a0d97 feat(ingest): LMTP server with per-recipient status
- Add LMTP server routing each recipient through the router
- Relay accepted mail with a list+bounce@ envelope sender
- Reject unknown lists and non-members with 550
- Return 451 on relay or internal failures so the MTA retries
- Cover end to end with a fake relay
2026-11-09 14:54:57 +01:00
tgiachi
dd2818d392 feat(outbound): SMTP relay sender with batching
- Add Sender interface
- Add SMTPRelay sending in batches of 50 recipients per transaction
- Add Fake sender that records messages for tests
2026-11-09 14:52:40 +01:00
tgiachi
d8f31d9b3e feat(router): rewrite headers for list delivery
- Add List-Id, List-Post, List-Unsubscribe and Precedence headers
- Add one-click unsubscribe (RFC 8058) when a base URL is configured
- Strip incoming List-* headers to prevent spoofing
- Rewrite From as "Name via List" and keep the original in Reply-To
- Copy the message body byte for byte
2026-11-09 14:50:56 +01:00
tgiachi
eb9e992f4a feat(router): accept posts only from list members
- Add Router.Route resolving list, checking sender membership
- Return ErrUnknownList and ErrNotMember
- Return subscriber addresses as recipients
2026-11-09 14:47:44 +01:00
tgiachi
015e0bbd0f feat(store): SQLite store for lists and members
- Add schema with lists and members tables
- Add CreateList, FindList, AddMember, IsMember, Members
- Normalize addresses to lowercase
2026-11-09 14:46:35 +01:00
tgiachi
a5ea90dbee chore: initial project skeleton 2026-11-09 14:44:55 +01:00