1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{mark "drafts"}}
account: {{account}}
{{if .Drafts}}{{len .Drafts}} unsent draft{{if ne (len .Drafts) 1}}s{{end}}{{else}}no unsent drafts{{end}}
{{mark "list"}}
Subjects below began as the subject of the message being answered, so they were
written by a correspondent rather than by you.
{{range .Drafts}}
[{{date .UpdatedAt}}] {{subject .Subject}}
      open: /draft/{{.Token}}
{{- if .ParentID}}
      answers: /msg/{{.ParentID}}
{{- end}}
{{end}}
{{mark "routes"}}
A draft is inert: it exists here and nothing has been sent. Opening one shows
what would go out and to whom.

HTML version: {{.HTMLViewURL}}

All routes accept `Accept: text/llm`, or append `?view=llm` to the URL:
  /draft/{token}          one draft, its contents and its recipients
  /                       most recent messages
  POST /msg/{id}/reply    (application/x-www-form-urlencoded)
                          fields: body     optional, the reply's text
                                  subject  optional, overrides the derived one
                          Composes a draft and sends nothing; answers with the
                          URL of the draft it made.