Get as far as storing an incoming mail in crockery.db

This commit is contained in:
2018-03-08 01:39:24 +00:00
parent be7ca459a5
commit b4537d1283
6 changed files with 123 additions and 3 deletions

View File

@@ -38,3 +38,17 @@ following, though:
* `Admin`
* `Wildcard`
* `PasswordHash`
* `Message`
* `ID`
* `Username`
* `Mailbox`
* `Header`
* `Body`
I don't seem to be able to get accounts for a list of usernames very easily, or
indexed-ly.
The message body is being stored inefficiently (json []byte, so base64-encoded)
Message username and mailbox are indexed, but is that good enough? Perhaps we
should have a bucket per mailbox or something?