+13
-1
AGENT.md
+13
-1
AGENT.md
···
13
13
## Coding Instructions
14
14
15
15
Read your instructions from this file, and mark successfully completed instructions
16
-
with DONE so that you will know what to do next when reinvoked in the future.
16
+
with DONE so that you will know what to do next when reinvoked in the future. If you
17
+
only partially complete the task, then add an extra step with TODO and the remaining
18
+
work.
17
19
18
20
1. DONE Define core OCaml type definitions corresponding to the JMAP protocol
19
21
specification, in a new Jmap.Types module.
···
24
26
separate package. It should use the Jmap module and extend it appropriately.
25
27
4. DONE Complete the Jmap_mail implementation so that there are functions to login
26
28
and list mailboxes and messages in a mailbox.
29
+
5. Fastmail provides me with an API token to login via JMAP rather than username
30
+
and password. Add the appropriate support for this into their API, which is
31
+
also explained over at https://www.fastmail.com/dev/. The summary is that the
32
+
auth token needs to add an Authorization header set to "Bearer {value}",
33
+
where {value} is the value of the token to your API request.
34
+
6. Add an example "fastmail_list" binary that will use the authentication token
35
+
from a JMAP_API_TOKEN env variable and connect to the Fastmail endpoint
36
+
at https://api.fastmail.com/jmap/session and list the last 100 email with
37
+
subjects and sender details to stdout.
38
+