{{template "head.html" .}} {{template "nav.html" .}} {{template "util.html" .}} {{ define "mbox-link" }} {{ if not (.HasAttr "\\Noselect") }} {{- if eq .Name "INBOX" -}} Inbox {{- else -}} {{ .Name }} {{- end -}} {{- if .HasAttr "\\HasChildren" }}/{{ end }} {{ if and (ne .Unseen -1) (ne .Unseen 0) }}({{ .Unseen }}){{ end }} {{ else }} {{.Name}}{{- if .HasAttr "\\HasChildren" }}/{{ end }} {{ end }} {{ end }}
{{ template "aside" . }}
{{ template "messages-header.html" . }}
{{range .Messages}} {{ $classes := "message-list-item" }} {{ if not (.HasFlag "\\Seen") }} {{ $classes = printf "%s %s" $classes "message-list-unread" }} {{ end }} {{ if (.HasFlag "\\Deleted") }} {{ $classes = printf "%s %s" $classes "message-list-deleted" }} {{ end }} {{ if not (.HasFlag "\\Deleted") }}
{{ range .Envelope.From }} {{ if .PersonalName }} {{.PersonalName}} {{ else }} {{.MailboxName}}@{{.HostName}} {{ end }} {{ end }}
{{ .Envelope.Date | formatdate }}
{{ else }}
(this email was deleted by another client)
{{ end }} {{ end }} {{if not .Messages}}

Nothing here yet.

{{end}}
{{ template "messages-header.html" . }}
{{template "foot.html"}}