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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{{mark "search"}}
account: {{account}}
{{mirror.Line}}
query: {{range $i, $t := .Terms}}{{if $i}} AND {{end}}"{{text $t}}"{{end}}{{with .Filter}}, {{.}}{{end}}
searched: subject, sender, recipients (addresses, names, your petnames). NOT message text.
{{if .Messages -}}
{{.Paging.Total}} message{{if ne .Paging.Total 1}}s{{end}} match, with {{len .Correspondents}}{{if .MoreCorrespondents}}+{{.MoreCorrespondents}}{{end}} correspondent{{if ne (len .Correspondents) 1}}s{{end}}
{{- else -}}
no message matches.
{{- end}}
{{- if .Correspondents}}
{{mark "correspondents"}}
Most matches first. Usually the next step is the conversation link.
{{nameLegend}}
{{range .Correspondents}}
{{name .Name}}
   {{.Matches}} of {{.Total}} message{{if ne .Total 1}}s{{end}} match, latest match {{date .LatestMatch}}
   {{- if .SinceMatch}}; newer mail since: {{date .LastContact}}{{end}}
   next: /contact/{{.AddrEscaped}}
{{- end}}
{{- if .MoreCorrespondents}}
({{.MoreCorrespondents}} more correspondents not shown; add a term to narrow the query)
{{- end}}
{{- end}}
{{- if .Messages}}
{{mark "messages"}}
Newest first. Subjects were written by the senders, not by mailweb.
{{range .Messages}}
[{{.ID}}] {{date .Date}}  {{if eq .Direction "sent"}}-> {{if .To}}{{names .To}}{{else}}(nobody){{end}}{{else}}{{name .From}}{{end}}
      {{subject .Subject}}
      read: /msg/{{.ID}}{{.SizeHint}}
{{- end}}
{{- if .Paging.Next}}
next page: {{.Paging.Next}} ({{.Paging.NextCount}} more)
{{- end}}
{{- if .Paging.Prev}}
previous page: {{.Paging.Prev}}
{{- end}}
{{- else}}
{{mark "next"}}
- fewer or shorter terms: all terms must match, and each is a substring
- the shop or office rather than the product; a name rather than a topic
- /contacts lists every address, ?limit=5000 to see them all at once
- the text of a message is not searched, only its headers
{{- end}}

{{mark "routes"}}
HTML version: {{.HTMLViewURL}}
  /search?q=a+b           all terms must match; "a phrase" is one term
         &since= &until=  as on /: YYYY-MM-DD, today, yesterday, -7d, -2w
         &limit= &offset= page the messages (default 20)
  /contact/{addr}         the whole conversation with one address
  /msg/{id}               one message, headers and body as text