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

Support down-converting of HTML to plain text

- Display a warning when text was generated from HTML
- Add a semi complicated, responsive HTML email for future testing
- Closes #20
This commit is contained in:
James Hillyerd
2016-03-03 19:44:48 -08:00
parent 86861eb747
commit 511e014a90
5 changed files with 413 additions and 8 deletions

View File

@@ -180,12 +180,13 @@ func MailboxShow(w http.ResponseWriter, req *http.Request, ctx *httpd.Context) (
htmlAvailable := mime.HTML != ""
return httpd.RenderPartial("mailbox/_show.html", w, map[string]interface{}{
"ctx": ctx,
"name": name,
"message": msg,
"body": body,
"htmlAvailable": htmlAvailable,
"attachments": mime.Attachments,
"ctx": ctx,
"name": name,
"message": msg,
"body": body,
"htmlAvailable": htmlAvailable,
"isTextFromHTML": mime.IsTextFromHTML,
"attachments": mime.Attachments,
})
}