parsimony/internal/router
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi bd4258ebac feat(router): queue a post to a list only once per hour
When the reply to a delivered post is lost, the MTA sends the post again
and every member got it twice. The list now remembers the posts it queued.

- store: new delivered table (list id, post id, time), created with
  CREATE TABLE IF NOT EXISTS and dropped with its list
- store: EnqueuePost records the post and queues it in one transaction,
  returns ErrDuplicate when the list queued it in the last hour, and
  purges older records
- store: EnqueueFromHeld records the post too, without refusing it: an
  approval always delivers
- router: Deliver uses EnqueuePost and logs a duplicate; the post id is
  the Message-ID, or a SHA-256 of the message when it has none
- router: Release passes the post id to EnqueueFromHeld
- tests for duplicates, other ids and lists, expiry on the store clock,
  atomicity, posts without Message-ID and approvals
2026-11-10 11:52:25 +01:00
..
commands.go feat: deliver through the persistent queue 2026-11-09 15:53:47 +01:00
dup_test.go feat(router): queue a post to a list only once per hour 2026-11-10 11:52:25 +01:00
headers.go feat(router): archive accepted posts and add per-recipient unsubscribe links 2026-11-09 15:20:01 +01:00
identity_test.go fix(ingest): answer 552 for a message too big to hold, with tests 2026-11-10 11:39:41 +01:00
loop_test.go fix(security): discard mail loops and automatic replies 2026-11-09 20:24:16 +01:00
m2_test.go fix(security): hold posts whose From header does not match the sender 2026-11-09 20:23:07 +01:00
m3_test.go fix(security): hold posts whose From header does not match the sender 2026-11-09 20:23:07 +01:00
router.go feat(router): queue a post to a list only once per hour 2026-11-10 11:52:25 +01:00
router_test.go fix(security): hold posts whose From header does not match the sender 2026-11-09 20:23:07 +01:00