parsimony/internal/store
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 2abd435494 feat(store): record posts and count their deliveries
- posts table: one row per post queued to a list (message id, subject,
  time, recipients, sent, failed, dropped), deleted with the list and
  forgotten after 400 days when a new post is recorded
- EnqueuePost and EnqueueFromHeld record the post in the same
  transaction and stamp every delivery with its id; a refused duplicate
  records nothing; other mail keeps post_id 0
- CompleteOutbox counts sent, the new DropOutbox counts dropped and
  FailOutbox counts failed, each in the transaction that changes the
  delivery; a delivery that already failed is never counted twice
- outbox priority column; DueOutbox orders by priority, next_at, id
- ListPosts newest first (default 50, at most 200) with Pending derived
- additive migration of the outbox columns, tested on an old database
2026-11-10 12:37:52 +01:00
..
archive_test.go test: pin the SMTP command named in a relay error, SMTPUTF8 and thread order 2026-11-10 11:42:19 +01:00
bounce_test.go fix(store): count only hard bounces of the last 30 days 2026-11-10 11:50:49 +01:00
dup_test.go test: pin the duplicate guard and the graceful shutdown 2026-11-10 11:58:07 +01:00
m2_test.go test: close the gaps found by mutation checks 2026-11-10 11:57:49 +01:00
outbox.go feat(store): record posts and count their deliveries 2026-11-10 12:37:52 +01:00
outbox_test.go feat(router): queue a post to a list only once per hour 2026-11-10 11:52:25 +01:00
posts.go feat(store): record posts and count their deliveries 2026-11-10 12:37:52 +01:00
posts_test.go feat(store): record posts and count their deliveries 2026-11-10 12:37:52 +01:00
store.go feat(store): record posts and count their deliveries 2026-11-10 12:37:52 +01:00
store_test.go fix(store): put the pragmas in the DSN so every connection has them 2026-11-10 11:49:00 +01:00