MIME part viewer and download individual parts

This commit is contained in:
Ian Kent 2014-04-27 19:59:14 +01:00
parent 306f814dff
commit 98c71bf455
3 changed files with 240 additions and 180 deletions

View file

@ -58,6 +58,9 @@
padding: 0; padding: 0;
overflow-y: scroll; overflow-y: scroll;
} }
.mime-part {
padding: 10px;
}
</style> </style>
<script> <script>
var columns = [15,15,40,20,10]; var columns = [15,15,40,20,10];
@ -222,11 +225,21 @@
<li class="active"><a href="#preview-html" data-toggle="tab">HTML</a></li> <li class="active"><a href="#preview-html" data-toggle="tab">HTML</a></li>
<li><a href="#preview-plain" data-toggle="tab">Plain text</a></li> <li><a href="#preview-plain" data-toggle="tab">Plain text</a></li>
<li><a href="#preview-source" data-toggle="tab">Source</a></li> <li><a href="#preview-source" data-toggle="tab">Source</a></li>
<li ng-if="preview.MIME"><a href="#preview-mime" data-toggle="tab">MIME</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="preview-html" ng-bind-html="preview.previewHTML"></div> <div class="tab-pane active" id="preview-html" ng-bind-html="preview.previewHTML"></div>
<div class="tab-pane" id="preview-plain">{{ getMessagePlain(preview) }}</div> <div class="tab-pane" id="preview-plain">{{ getMessagePlain(preview) }}</div>
<div class="tab-pane" id="preview-source">{{ getSource(preview) }}</div> <div class="tab-pane" id="preview-source">{{ getSource(preview) }}</div>
<div class="tab-pane" id="preview-mime">
<div ng-repeat="part in preview.MIME.Parts" class="mime-part">
<a href="/api/v1/messages/{{ preview.Id }}/mime/part/{{ $index }}/download" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-save"></span>
Download
</a>
{{ part.Headers["Content-Type"][0] || "Unknown type" }} ({{ part.Size }} bytes)
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -594,186 +594,199 @@ func assets_js_controllers_js() ([]byte, error) {
func assets_templates_index_html() ([]byte, error) { func assets_templates_index_html() ([]byte, error) {
return bindata_read([]byte{ return bindata_read([]byte{
0x1f, 0x8b, 0x08, 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f, 0xed, 0x8c, 0x8a, 0xdc, 0xe0, 0x4a, 0xe1, 0xb4, 0xce, 0x0b, 0x81, 0xe6, 0xe8, 0xcb, 0xc5,
0x28, 0x79, 0x30, 0x21, 0xad, 0x8b, 0x58, 0x52, 0x5e, 0x8c, 0x1c, 0x45, 0xdb, 0x11, 0xfc, 0xff, 0x66, 0x32, 0x7a, 0x35, 0x19, 0x5d, 0x4c, 0xee,
0xcd, 0x68, 0x0e, 0x68, 0x80, 0x05, 0x30, 0xc1, 0x9a, 0x40, 0xd3, 0xd1, 0xae, 0xec, 0x8c, 0x8a, 0x28, 0xad, 0x30, 0x21, 0x5d, 0x17, 0xb1, 0xa4,
0xc5, 0xe8, 0xd2, 0x19, 0x7d, 0x39, 0x8e, 0x18, 0x29, 0x36, 0x10, 0xe9, 0xbc, 0x18, 0xb8, 0x44, 0x36, 0xa3, 0x39, 0x60, 0x06, 0xca, 0x60, 0x82,
0x15, 0x9a, 0xb9, 0x95, 0xc8, 0x5b, 0x77, 0x31, 0xda, 0xd1, 0x22, 0xe1, 0x35, 0x94, 0xa6, 0x83, 0xb3, 0xc1, 0xb9, 0x73, 0xed, 0x7c, 0x18, 0x31,
0xbb, 0x71, 0x64, 0xb2, 0x17, 0x14, 0x84, 0xa8, 0x23, 0x42, 0x53, 0x33, 0x52, 0xac, 0x20, 0x1f, 0x16, 0x68, 0xe2, 0x56, 0x22, 0x6f, 0xdd, 0xd9,
0x04, 0xdf, 0x05, 0x08, 0xe3, 0x69, 0x2a, 0x08, 0x4c, 0x89, 0xa0, 0x06, 0x60, 0x4b, 0x8b, 0x84, 0x6f, 0x87, 0x91, 0xa9, 0x71, 0x50, 0x10, 0xa2,
0x6b, 0x59, 0x7b, 0x44, 0x98, 0x20, 0x47, 0x04, 0x5f, 0x0e, 0xa4, 0x69, 0x96, 0x08, 0x9d, 0xc0, 0x21, 0x20, 0x24, 0x40, 0x18, 0x4f, 0x53, 0x41,
0x4f, 0x08, 0xfa, 0xc3, 0xf1,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72, 0x78, 0x0b, 0xf6, 0x9a, 0xcd,
0xf6, 0xfb, 0x77, 0x14, 0xfc, 0xbd, 0xf8, 0x5a, 0x80, 0x2c, 0xed, 0x45,
0x00, 0x8e, 0xa1, 0x81, 0x5b, 0xf8, 0x99, 0xfe, 0x4e, 0xd4, 0x83, 0xe5,
0x83, 0x24, 0x62, 0xd8, 0x22, 0x9e, 0x76, 0x04, 0x4f, 0x9d, 0x39, 0xff,
0x19, 0x00, 0x00, 0xff, 0xff, 0x4d, 0xd2, 0x42, 0x28, 0x5f, 0x21, 0x00,
0x00,
}, },
"assets/templates/index.html", "assets/templates/index.html",
) )

View file

@ -6,6 +6,7 @@ import (
"net/http" "net/http"
"net/smtp" "net/smtp"
"regexp" "regexp"
"strconv"
"github.com/ian-kent/MailHog/mailhog/data" "github.com/ian-kent/MailHog/mailhog/data"
"github.com/ian-kent/MailHog/mailhog/config" "github.com/ian-kent/MailHog/mailhog/config"
"github.com/ian-kent/MailHog/mailhog/storage" "github.com/ian-kent/MailHog/mailhog/storage"
@ -37,6 +38,7 @@ func CreateAPIv1(exitCh chan int, conf *config.Config, server *http.Server) *API
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/?$"), apiv1.message) server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/?$"), apiv1.message)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/delete/?$"), apiv1.delete_one) server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/delete/?$"), apiv1.delete_one)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/download/?$"), apiv1.download) server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/download/?$"), apiv1.download)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/mime/part/(\\d+)/download/?$"), apiv1.download_part)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/release/?$"), apiv1.release_one) server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/api/v1/messages/([0-9a-f]+)/release/?$"), apiv1.release_one)
return apiv1 return apiv1
@ -113,6 +115,38 @@ func (apiv1 *APIv1) download(w http.ResponseWriter, r *http.Request, route *hand
} }
} }
func (apiv1 *APIv1) download_part(w http.ResponseWriter, r *http.Request, route *handler.Route) {
match := route.Pattern.FindStringSubmatch(r.URL.Path)
id := match[1]
part, _ := strconv.Atoi(match[2])
log.Printf("[APIv1] GET /api/v1/messages/%s/mime/part/%d/download\n", id, part)
// TODO extension from content-type?
w.Header().Set("Content-Disposition", "attachment; filename=\"" + id + "-part-" + match[2] + "\"")
switch apiv1.config.Storage.(type) {
case *storage.MongoDB:
message, _ := apiv1.config.Storage.(*storage.MongoDB).Load(id)
for h, l := range message.MIME.Parts[part].Headers {
for _, v := range l {
w.Header().Set(h, v)
}
}
w.Write([]byte("\r\n" + message.MIME.Parts[part].Body))
case *storage.Memory:
message, _ := apiv1.config.Storage.(*storage.Memory).Load(id)
for h, l := range message.MIME.Parts[part].Headers {
for _, v := range l {
w.Header().Set(h, v)
}
}
w.Write([]byte("\r\n" + message.MIME.Parts[part].Body))
default:
w.WriteHeader(500)
}
}
func (apiv1 *APIv1) delete_all(w http.ResponseWriter, r *http.Request, route *handler.Route) { func (apiv1 *APIv1) delete_all(w http.ResponseWriter, r *http.Request, route *handler.Route) {
log.Println("[APIv1] POST /api/v1/messages/delete") log.Println("[APIv1] POST /api/v1/messages/delete")