Sfoglia il codice sorgente

Print body structure tree

master
Simon Ser 4 anni fa
parent
commit
61f2f3e139
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: FDE7BE0E88F5E48
1 ha cambiato i file con 16 aggiunte e 1 eliminazioni
  1. +16
    -1
      public/message.html

+ 16
- 1
public/message.html Vedi File

@@ -6,6 +6,21 @@

<h2>{{.Message.Envelope.Subject}}</h2>

<pre>{{.Body}}</pre>
{{define "message-part"}}
{{.MIMEType}}/{{.MIMESubType}}
{{if gt (len .Parts) 0}}
<ul>
{{range .Parts}}
<li>{{template "message-part" .}}</li>
{{end}}
</ul>
{{end}}
{{end}}

{{template "message-part" .Message.BodyStructure}}

{{if .Body}}
<pre>{{.Body}}</pre>
{{end}}

{{template "foot"}}

Caricamento…
Annulla
Salva