Cotton code
53 lines · 1.7 KB · JSONRaw
{  "format_version": 1,  "id": "email_cut",  "name": "Archived sender",  "plural": "Archived senders",  "builtin": false,  "visibility": "owner",  "title": "key",  "columns": [    {      "key": "key",      "name": "Sender",      "type": "text",      "required": true,      "indexed": true    },    {      "key": "before",      "name": "Sent up to",      "type": "date",      "format": "calendar-datetime",      "required": true    },    {      "key": "at",      "name": "Covers arrivals up to",      "type": "date",      "format": "calendar-datetime",      "required": true    },    {      "key": "made_at",      "name": "Made at",      "type": "date",      "format": "calendar-datetime",      "required": true    },    {      "key": "state",      "name": "State",      "type": "text"    },    {      "key": "except",      "name": "Kept in the Inbox",      "type": "longtext"    }  ],  "seal": {    "clear": []  },  "instructions": "One row per Archive of a whole sender in Post (assets/design/mail/DECISIONS.md, Archive in one tap): every mail from key (an address, or @domain for a whole domain, lower case) sent at or before `before` and landed here at or before `at` is archived, in one write however many mails that is; mail that lands after `at` is not. except is a JSON list of the email ids moved back to the Inbox since, which stay in the Inbox. Undo deletes the row. His mailbox follows mail by mail through whoever fetches it, said in the app as it goes. Written only from his own tap; sealed like the rest. made_at is when he tapped; `at` is the newest server arrival among the mails he saw and bounds what the row covers. state live (or absent) covers; undone covers nothing. His own addresses are never covered."}