1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +00:00

Track enmime API changes

- Part accessors: 196b2ad725
- IsTextFromHTML: 2bd44ac6cc
This commit is contained in:
James Hillyerd
2016-11-21 22:32:29 -08:00
parent 26a9903492
commit 364e7a0b80
2 changed files with 15 additions and 11 deletions

View File

@@ -67,10 +67,14 @@
</div>
</div>
{{if .isTextFromHTML}}
{{with .mimeErrors}}
<div class="alert alert-warning" role="alert">
<strong>Notice:</strong> Message did not contain a plain text portion;
the text below was converted from HTML automatically.
<strong>Notice:</strong> MIME parsing <u>W</u>arnings and/or <u>E</u>rrors were encountered
<ul>
{{range $i, $err := .}}
<li>{{$err}}</li>
{{end}}
</ul>
</div>
{{end}}