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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user