mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-19 10:37:01 +00:00
Improved message rendering
Added a decodeSection function to mime.go that uses go-qprintable to parse quoted-printable emails or MIME parts, fixes #7 Added a very basic TextToHtml converter to provide nicer rending of text message bodies.
This commit is contained in:
@@ -69,7 +69,7 @@ func (c Mailbox) Show(name string, id string) rev.Result {
|
||||
if err != nil {
|
||||
return c.RenderError(err)
|
||||
}
|
||||
body := mime.Text
|
||||
body := template.HTML(inbucket.TextToHtml(mime.Text))
|
||||
htmlAvailable := mime.Html != ""
|
||||
|
||||
c.Response.Out.Header().Set("Expires", "-1")
|
||||
|
||||
Reference in New Issue
Block a user