askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
email_outbox.json · 2.0 KB · 33 lines
| 1 | { |
| 2 | "name": "email_outbox", |
| 3 | "title": "Email Outbox", |
| 4 | "version": 1, |
| 5 | "description": "Outbound mail queue (plan/vocabulary/01-email-adapter-spec.md). Any block enqueues a send record here via object_email.enqueue(); the daemon's process_email_outbox pass delivers it. Closed to the generic POST /collections write surface (no create rule for any principal) so it can never be misconfigured into a public relay -- writes only ever originate from server-side enqueue() or the daemon updating status. append storage: every retry/transition is a row, so the collection IS its own audit trail until compaction folds it.", |
| 6 | "storage": "append", |
| 7 | "fields": [ |
| 8 | { "name": "id" }, |
| 9 | { "name": "to", "type": "text", "required": true, "label": "To" }, |
| 10 | { "name": "from_addr", "type": "text", "label": "From" }, |
| 11 | { "name": "reply_to", "type": "text", "label": "Reply-To" }, |
| 12 | { "name": "subject", "type": "text", "required": true, "label": "Subject" }, |
| 13 | { "name": "text_body", "type": "textarea", "required": true, "label": "Text Body" }, |
| 14 | { "name": "html_body", "type": "textarea", "label": "HTML Body" }, |
| 15 | { "name": "status", "type": "text", "default": "queued", "label": "Status" }, |
| 16 | { "name": "attempts", "type": "number", "default": "0", "label": "Attempts" }, |
| 17 | { "name": "max_attempts", "type": "number", "label": "Max Attempts" }, |
| 18 | { "name": "last_error", "type": "text", "label": "Last Error" }, |
| 19 | { "name": "next_attempt_at", "type": "datetime", "label": "Next Attempt" }, |
| 20 | { "name": "created_at", "type": "datetime", "read_only": true, "label": "Created" }, |
| 21 | { "name": "updated_at", "type": "datetime", "read_only": true, "label": "Updated" }, |
| 22 | { "name": "sent_at", "type": "datetime", "label": "Sent" }, |
| 23 | { "name": "source_object_id", "type": "text", "label": "Source Object" }, |
| 24 | { "name": "extra", "type": "text", "label": "Extra" } |
| 25 | ], |
| 26 | "views": { |
| 27 | "list_mode": "table", |
| 28 | "list_fields": ["to", "subject", "status", "attempts", "updated_at"] |
| 29 | }, |
| 30 | "search": { |
| 31 | "fields": ["to", "subject"] |
| 32 | } |
| 33 | } |