2019-12-09 13:59:58 +00:00
|
|
|
{{template "head.html"}}
|
2019-12-02 14:31:00 +00:00
|
|
|
|
2020-05-13 12:07:44 +00:00
|
|
|
<h1>alps</h1>
|
2019-12-02 14:31:00 +00:00
|
|
|
|
2019-12-03 13:33:20 +00:00
|
|
|
<p>
|
2020-01-28 19:04:33 +00:00
|
|
|
<a href="/logout">Logout</a>
|
|
|
|
· <a href="/compose">Compose</a>
|
|
|
|
· <a href="/settings">Settings</a>
|
2019-12-03 13:33:20 +00:00
|
|
|
</p>
|
2019-12-03 12:24:46 +00:00
|
|
|
|
2019-12-02 18:53:09 +00:00
|
|
|
<h2>{{.Mailbox.Name}}</h2>
|
|
|
|
|
2019-12-17 15:23:51 +00:00
|
|
|
<form method="get" action="">
|
2020-01-24 19:58:27 +00:00
|
|
|
<input type="search" name="query" value="{{.Query}}">
|
|
|
|
<input type="submit" value="Search">
|
2019-12-16 13:36:43 +00:00
|
|
|
</form>
|
|
|
|
|
2019-12-02 16:31:34 +00:00
|
|
|
<p>Mailboxes:</p>
|
|
|
|
<ul>
|
2020-01-24 19:58:27 +00:00
|
|
|
{{range .Mailboxes}}
|
|
|
|
<li><a href="/mailbox/{{.Name | pathescape}}">{{.Name}}</a></li>
|
|
|
|
{{end}}
|
2019-12-02 16:31:34 +00:00
|
|
|
</ul>
|
|
|
|
|
2019-12-03 16:52:56 +00:00
|
|
|
{{if .Messages}}
|
2020-01-24 19:58:27 +00:00
|
|
|
<p>Messages:</p>
|
|
|
|
<ul>
|
|
|
|
{{range .Messages}}
|
2020-02-05 10:58:53 +00:00
|
|
|
<li>
|
|
|
|
<a href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}">
|
|
|
|
{{if .Envelope.Subject}}
|
|
|
|
{{.Envelope.Subject}}
|
|
|
|
{{else}}
|
|
|
|
(No subject)
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
{{if .Attachments}}📎{{end}}
|
|
|
|
{{if .HasFlag "\\Answered"}}↩{{end}}
|
|
|
|
{{if .HasFlag "$Forwarded"}}↪{{end}}
|
|
|
|
{{if .HasFlag "\\Flagged"}}⭐{{end}}
|
|
|
|
</li>
|
2020-01-24 19:58:27 +00:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
{{if ge .PrevPage 0}}
|
|
|
|
<a href="?page={{.PrevPage}}&query={{.Query}}">Prev</a>
|
|
|
|
{{end}}
|
|
|
|
{{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}}
|
|
|
|
{{if ge .NextPage 0}}
|
|
|
|
<a href="?page={{.NextPage}}&query={{.Query}}">Next</a>
|
|
|
|
{{end}}
|
|
|
|
</p>
|
2019-12-03 16:52:56 +00:00
|
|
|
{{else}}
|
2020-01-24 19:58:27 +00:00
|
|
|
<p>No message.</p>
|
2019-12-03 16:52:56 +00:00
|
|
|
{{end}}
|
2019-12-02 17:21:45 +00:00
|
|
|
|
2019-12-09 13:59:58 +00:00
|
|
|
{{template "foot.html"}}
|