Skip to content

Mailboxes

Joshua Thijssen edited this page Aug 9, 2020 · 4 revisions

Currently, mailboxes are plaintext.

boxes are numbered. Everything below 100 are mandatory boxes and cannot be removed. Everything above, including 100, are user boxes and can be removed by the user.

Box information should be stored encrypted. For this we might be able to use the store for this.


Download box info:

   <server>/account/<hash>/boxes

returns a list of all boxes available on the server:

    [ 
      {
       "box": "1.2"
       "data": "<encrypted data>"
      {
       "box": "1.2.3"
       "data": "<encrypted data>"
      },
    ]

check messages in box:

    <server>/account/<hash>/box/1.2.3/new?since=<timestamp>

returns a list of email IDs that are new since the last timestamp. There is a maximum number of message that are send (say: 100). When there are more another check must be done with the timestamp of the last message.

 {
   "meta" : {
      "found": 152,         # how many maches the query
      "returned": 100,      # how many are actually returned. If not the same as "found", more queries must be made.
      "since": 125151515,
   }, 
   "messages: [
     {
       "message id": "asdfasfsafasfasfaf",
       "header": <header>,
       "catalog": <catalog>,
     },
     .....
   ]
 }
Clone this wiki locally