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

Basic MIME parsing is now integrated, this closes #1

This commit is contained in:
James Hillyerd
2012-10-17 21:10:02 -07:00
parent e76fad1523
commit 0efb28ef38
4 changed files with 68 additions and 52 deletions

View File

@@ -64,10 +64,11 @@ func (c Mailbox) Show(name string, id string) rev.Result {
if err != nil {
return c.RenderError(err)
}
_, body, err := message.ReadBody()
_, mime, err := message.ReadBody()
if err != nil {
return c.RenderError(err)
}
body := mime.Text
c.Response.Out.Header().Set("Expires", "-1")
return c.Render(name, message, body)