Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

9 downloads

Install on DigitalOcean Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Daniel Quellhorst Changelog for this batch. 65ef78d 3 hours, 42 minutes ago History
mail_accounts.json · 3.8 KB · 46 lines
1{
2 "name": "mail_accounts",
3 "subject_exempt": "The server's own connected mailboxes (email_address) and their credentials, which belong to the operator rather than to a customer. Not exported, because the row carries secrets; if the subject is the owner of one of these mailboxes, the operator answers for it by hand.",
4 "title": "Mail Accounts",
5 "version": 1,
6 "description": "One IMAP mailbox a person asked this server to copy into their inbox. The password is deliberately NOT a field: a record is readable, listable, exported and backed up, and a secret must be none of those (docs/secrets-and-credentials.md). It lives in the owner's identity vault under the service name imap-<this account's id>, written through PUT /identity/users/{user_id}/service-keys and never readable back; the /mail/accounts page shows only whether it is set. The sync_* fields and last_synced_at belong to system_mail_sync: last_synced_at is when the account was last found up to date (refreshed at most hourly while nothing arrives, so an idle account does not rewrite its row every pass), sync_started_at/sync_finished_at are the claim a pass holds while it writes, and sync_attempts/sync_error say how many passes in a row have failed and what the server said. sync_attempts is the one status field the owner may write: setting it to 0 skips the wait after failures and tries again on the next pass.",
7 "fields": [
8 {"name": "id"},
9 {"name": "label", "type": "text", "label": "Name", "validation": {"max_length": 100},
10 "help": "What you call this mailbox, for example Work."},
11 {"name": "email_address", "type": "text", "required": true, "label": "Email address",
12 "validation": {"max_length": 254, "pattern": "^[^\\s@]+@[^\\s@]+$"},
13 "help": "Mail sent from this address is shown as sent by you."},
14 {"name": "host", "type": "text", "required": true, "label": "IMAP server",
15 "validation": {"max_length": 253, "pattern": "^[A-Za-z0-9.-]+$"},
16 "help": "A host name such as imap.example.com, no https:// and no port."},
17 {"name": "port", "type": "integer", "label": "Port",
18 "help": "Blank means 993 for ssl and 143 for starttls."},
19 {"name": "security", "type": "enum", "default": "ssl", "enum": ["ssl", "starttls", "plain"],
20 "label": "Security",
21 "help": "ssl (port 993) or starttls (port 143). plain sends the password unencrypted and is refused for anything but this machine itself."},
22 {"name": "username", "type": "text", "label": "User name",
23 "validation": {"max_length": 254, "pattern": "^[^\\r\\n]*$"},
24 "help": "Blank means the email address."},
25 {"name": "folders", "type": "text", "label": "Folders",
26 "validation": {"max_length": 1000, "pattern": "^[^\\r\\n]*$"},
27 "help": "Comma-separated. Blank means INBOX plus the Sent folder, found on the first sync and written here."},
28 {"name": "enabled", "type": "boolean", "default": "true", "label": "Sync this account"},
29 {"name": "last_synced_at", "type": "datetime", "label": "Last synced", "read_only": true},
30 {"name": "sync_started_at", "type": "datetime", "label": "Sync started", "read_only": true},
31 {"name": "sync_finished_at", "type": "datetime", "label": "Sync finished", "read_only": true},
32 {"name": "sync_attempts", "type": "integer", "default": "0", "label": "Failed syncs in a row",
33 "help": "Set to 0 to try again at once instead of waiting."},
34 {"name": "sync_error", "type": "text", "label": "Last error", "read_only": true,
35 "validation": {"max_length": 500}},
36 {"name": "owner_id", "type": "text", "label": "Owner"},
37 {"name": "created_at", "type": "datetime", "label": "Created", "read_only": true}
38 ],
39 "forms": {
40 "default": {"fields": ["label", "email_address", "host", "port", "security", "username", "folders", "enabled"]}
41 },
42 "views": {
43 "list_mode": "table",
44 "list_fields": ["label", "email_address", "last_synced_at", "sync_error"]
45 }
46}