{{ define "mbox-link" }}
{{ if not (.HasAttr "\\Noselect") }}
{{- if eq .Name "INBOX" -}}
Inbox
{{- else -}}
{{ .Name }}
{{- end -}}
{{- if .HasAttr "\\HasChildren" }}/{{ end }}
{{ if eq .Name "Outbox" }}
{{ if and (ne .Total -1) (ne .Total 0) }}({{ .Total }} unsent){{ end }}
{{ else }}
{{ if and (ne .Unseen -1) (ne .Unseen 0) }}({{ .Unseen }}){{ end }}
{{ end }}
{{ else }}
{{.Name}}{{- if .HasAttr "\\HasChildren" }}/{{ end }}
{{ end }}
{{ end }}
{{ define "aside" }}
{{ end }}