{"format_version": 1,"id": "email_draft","name": "Mail draft","plural": "Mail drafts","builtin": false,"visibility": "owner","engine": null,"columns": [ {"key": "to","name": "To","type": "longtext","required": true }, {"key": "cc","name": "Cc","type": "longtext" }, {"key": "bcc","name": "Bcc","type": "longtext" }, {"key": "attachments","name": "Attachments","type": "longtext" }, {"key": "subject","name": "Subject","type": "text" }, {"key": "body","name": "Mail","type": "longtext" }, {"key": "quoted","name": "Quoted text","type": "longtext","readonly": true }, {"key": "thread_id","name": "In reply to the conversation","type": "text","readonly": true }, {"key": "reply_to","name": "In reply to the mail","type": "text","readonly": true }, {"key": "account","name": "From","type": "text" }, {"key": "status","name": "Status","type": "choice","choices": ["draft","queued","sending","sent","failed" ],"labels": {"draft": "Draft","queued": "Waiting to send","sending": "Sending","sent": "Sent","failed": "Not sent" },"default": "draft","required": true }, {"key": "saved_at","name": "Saved","type": "date","format": "calendar-datetime","readonly": true }, {"key": "sent_at","name": "Sent","type": "date","format": "calendar-datetime","readonly": true }, {"key": "sent_email","name": "Sent as","type": "text","readonly": true }, {"key": "error","name": "Why it was not sent","type": "text","readonly": true } ],"seal": {"clear": ["thread_id","status","saved_at","sent_at" ] },"title": "subject","date": null,"project": null,"instructions": "One row per mail the owner writes in Comms: a new mail, or a reply in a conversation of mail (thread_id, and reply_to the mail answered, with its words in quoted). to and cc are JSON arrays of addresses. Cotton cannot send mail yet (assets/design/chat/MAIL.md, \"Sending\"): Comms writes every row as a draft and says so (\"Not sent yet: sending from Comms is not set up\"). queued, sending, sent and failed are kept for the sender once one is set up; nothing writes them today, and nothing should mark a row queued, because no sender is there to take it."}