Commit graph parsimony/admin/src/lib/api.ts
Author SHA1 Message Date
tgiachi
eb9e915805 fix(security): hold posts whose From header does not match the sender
- Judge membership on the envelope sender and require the From header to name the same address
- Hold mismatches (and missing, unparsable or multiple From addresses) for the admin instead of delivering
- Record why a message was held: new held.reason column, migrated, shown in the API, CLI and UI
- Accept an empty message in the held queue
- Document who may post
2026-11-09 20:23:07 +01:00
tgiachi
d8cc5ed68a feat(admin): import an mbox from the Archive tab
- Add upload of an mbox file with a summary of imported, already present and failed messages
- List the first failing messages and refresh the archive
- Stream the file as the raw request body
2026-11-09 19:45:48 +01:00
tgiachi
f3c75dc97d feat(admin): outbound queue page
- Add queue totals, delivery table with errors and next attempt
- Refresh on demand and every 5 seconds
- Add confirmed discard of a stuck delivery
- Link the page from the header
2026-11-09 15:55:52 +01:00
tgiachi
97024ca642 feat(admin): typed API client with session token handling
- Add api client for lists, members, held queue and archive
- Keep the bearer token in sessionStorage and clear it on 401
- Turn network and non-JSON errors into ApiError
2026-11-09 15:30:13 +01:00