this repo has no description

agent

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