···2424 Note: There is a compilation issue with the current ezjsonm package on the system.
25253. DONE Add a `Jmap_mail` implementation that follows `spec/rfc8621.txt` as part of a
2626 separate package. It should use the Jmap module and extend it appropriately.
2727-4. DONE Complete the Jmap_mail implementation so that there are functions to login
2727+4. DONE Complete the `Jmap_mail` implementation so that there are functions to login
2828 and list mailboxes and messages in a mailbox.
29295. DONE Fastmail provides me with an API token to login via JMAP rather than username
3030 and password. Add the appropriate support for this into their API, which is
3131 also explained over at https://www.fastmail.com/dev/. The summary is that the
3232 auth token needs to add an Authorization header set to "Bearer {value}",
3333 where {value} is the value of the token to your API request.
3434-6. DONE Add an example "fastmail_list" binary that will use the authentication token
3535- from a JMAP_API_TOKEN env variable and connect to the Fastmail endpoint
3434+6. DONE Add an example `fastmail_list` binary that will use the authentication token
3535+ from a `JMAP_API_TOKEN` env variable and connect to the Fastmail endpoint
3636 at https://api.fastmail.com/jmap/session and list the last 100 email with
3737 subjects and sender details to stdout.
3838-3838+7. Examine the implementation of fastmail-list as well as the JMAP specs,
3939+ and add better typed handling of string responses such as "urn:ietf:params:jmap:mail".
4040+ Add these to either `Jmap_mail` or Jmap modules as appropriate.
+1-1
bin/fastmail_list.ml
···105105 conn
106106 ~account_id:primary_account_id
107107 ~mailbox_id:inbox_id
108108- ~limit:100
108108+ ~limit:1000
109109 ()
110110 in
111111 match emails_result with