From 61f2f3e139dbc39618a9764a5b80af61933167da Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 Dec 2019 11:11:49 +0100 Subject: Print body structure tree --- public/message.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/message.html b/public/message.html index 9cd4a2e..047e78f 100644 --- a/public/message.html +++ b/public/message.html @@ -6,6 +6,21 @@

{{.Message.Envelope.Subject}}

-
{{.Body}}
+{{define "message-part"}} + {{.MIMEType}}/{{.MIMESubType}} + {{if gt (len .Parts) 0}} + + {{end}} +{{end}} + +{{template "message-part" .Message.BodyStructure}} + +{{if .Body}} +
{{.Body}}
+{{end}} {{template "foot"}} -- cgit v1.2.3