{{template "head.html"}} {{template "nav.html"}}

{{if .Message.Envelope.Subject}} {{.Message.Envelope.Subject}} {{else}} (No subject) {{end}}

{{define "message-part-tree"}} {{/* nested templates can't access the parent's context */}} {{$ = index . 0}} {{with index . 1}} {{if eq $.PartPath .PathString}}{{end}} {{.String}} {{if eq $.PartPath .PathString}}{{end}} {{if gt (len .Children) 0}} {{end}} {{end}} {{end}}
{{if .Body}}
{{.Body}}
{{else}}

Can't preview this message part.

Download {{end}}
{{template "message-part-tree" (tuple $ .Message.PartTree)}}
{{template "foot.html"}}