this repo has no description

agent

Changed files
+14 -1
+1
.gitignore
···
_build
+
.env
+13 -1
AGENT.md
···
## Coding Instructions
Read your instructions from this file, and mark successfully completed instructions
-
with DONE so that you will know what to do next when reinvoked in the future.
+
with DONE so that you will know what to do next when reinvoked in the future. If you
+
only partially complete the task, then add an extra step with TODO and the remaining
+
work.
1. DONE Define core OCaml type definitions corresponding to the JMAP protocol
specification, in a new Jmap.Types module.
···
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. 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. 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.
+