Support nested multipart messages

This commit is contained in:
Ian Kent 2014-04-28 00:21:57 +01:00
parent d1b50fb0b5
commit e2e6971d01
3 changed files with 207 additions and 195 deletions

View file

@ -57,7 +57,7 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
$scope.startEvent = function(name, args, glyphicon) {
var eID = guid();
console.log("Starting event '" + name + "' with id '" + eID + "'")
//console.log("Starting event '" + name + "' with id '" + eID + "'")
var e = {
id: eID,
name: name,
@ -82,9 +82,9 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
e.complete = true;
$scope.eventDone++;
if(this.failed) {
console.log("Failed event '" + e.name + "' with id '" + eID + "'")
// console.log("Failed event '" + e.name + "' with id '" + eID + "'")
} else {
console.log("Completed event '" + e.name + "' with id '" + eID + "'")
// console.log("Completed event '" + e.name + "' with id '" + eID + "'")
$timeout(function() {
e.remove();
}, 10000);
@ -96,7 +96,7 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
this.done();
},
remove: function() {
console.log("Deleted event '" + e.name + "' with id '" + eID + "'")
// console.log("Deleted event '" + e.name + "' with id '" + eID + "'")
if(e.failed) {
$scope.eventFailed--;
}
@ -160,46 +160,40 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
}
$scope.getMessagePlain = function(message) {
var part;
if(message.MIME) {
for(var p in message.MIME.Parts) {
if("Content-Type" in message.MIME.Parts[p].Headers) {
if(message.MIME.Parts[p].Headers["Content-Type"].length > 0) {
if(message.MIME.Parts[p].Headers["Content-Type"][0].match(/text\/plain;?.*/)) {
part = message.MIME.Parts[p];
break;
}
}
}
}
var l = $scope.findMatchingMIME(message, "text/plain");
if(l != null && l !== "undefined") {
return l.Body;
}
return message.Content.Body;
}
if(!part) part = message.Content;
return part.Body;
$scope.findMatchingMIME = function(part, mime) {
if(part.MIME) {
for(var p in part.MIME.Parts) {
if("Content-Type" in part.MIME.Parts[p].Headers) {
if(part.MIME.Parts[p].Headers["Content-Type"].length > 0) {
if(part.MIME.Parts[p].Headers["Content-Type"][0].match(mime + ";?.*")) {
return part.MIME.Parts[p];
} else if (part.MIME.Parts[p].Headers["Content-Type"][0].match(/multipart\/.*/)) {
var f = $scope.findMatchingMIME(part.MIME.Parts[p], mime);
if(f != null) {
return f;
}
}
}
}
}
}
return null;
}
$scope.getMessageHTML = function(message) {
var part;
if(message.MIME) {
for(var p in message.MIME.Parts) {
if("Content-Type" in message.MIME.Parts[p].Headers) {
if(message.MIME.Parts[p].Headers["Content-Type"].length > 0) {
if(message.MIME.Parts[p].Headers["Content-Type"][0].match(/text\/html;?.*/)) {
part = message.MIME.Parts[p];
break;
}
}
}
}
var l = $scope.findMatchingMIME(message, "text/html");
if(l != null && l !== "undefined") {
return l.Body;
}
return "<HTML not found>";
}
if(!part) part = message.Content;
return part.Body;
}
$scope.date = function(timestamp) {
return (new Date(timestamp)).toString();
};

View file

@ -449,160 +449,168 @@ func assets_images_hog_png() ([]byte, error) {
func assets_js_controllers_js() ([]byte, error) {
return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xec, 0x18,
0x5b, 0x6b, 0x1b, 0xc7, 0xfa, 0x59, 0xfa, 0x15, 0x73, 0xf6, 0x18, 0xb4,
0x1b, 0x4b, 0x2b, 0x1b, 0x0e, 0xe7, 0xc1, 0x22, 0x0d, 0xa9, 0xed, 0x10,
0x17, 0xbb, 0x09, 0x71, 0x1e, 0x0a, 0x8e, 0x29, 0x63, 0xed, 0x48, 0xbb,
0x64, 0x6f, 0xcc, 0x8c, 0xa4, 0x98, 0xa0, 0xff, 0xde, 0x6f, 0xee, 0xb3,
0x37, 0x59, 0x24, 0xf4, 0xa1, 0xd0, 0xd0, 0x46, 0xd9, 0xf9, 0xae, 0xf3,
0xdd, 0xbf, 0xd9, 0x62, 0x8a, 0x0a, 0x9c, 0xe5, 0x69, 0xb5, 0x7e, 0x5b,
0xd7, 0xe8, 0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0xf9, 0x7b, 0x82, 0x13,
0x42, 0x19, 0x20, 0xac, 0x70, 0xce, 0x08, 0xb8, 0xc0, 0x22, 0x91, 0x2d,
0x29, 0x39, 0xfb, 0x48, 0xca, 0x04, 0x2c, 0xd1, 0xe6, 0x20, 0x81, 0x97,
0xd5, 0xa6, 0xe4, 0x00, 0x39, 0x6b, 0x03, 0xae, 0xaa, 0x92, 0xf4, 0x9d,
0xbf, 0x83, 0xbb, 0x90, 0x44, 0x41, 0x1c, 0x28, 0xc5, 0xec, 0x5a, 0x40,
0xef, 0xab, 0x0d, 0x5d, 0x12, 0xa7, 0x8a, 0x45, 0x60, 0x06, 0x50, 0x6e,
0xf2, 0x5c, 0x51, 0x86, 0xc6, 0x16, 0x36, 0x24, 0x34, 0x2e, 0xfc, 0x5f,
0x82, 0x6b, 0x09, 0x2e, 0x42, 0xe5, 0xbb, 0xc8, 0x17, 0xc5, 0xab, 0xf5,
0x3a, 0x27, 0x0a, 0x2e, 0x04, 0x0d, 0x30, 0x31, 0x02, 0x95, 0x44, 0xf4,
0xa6, 0x8f, 0x39, 0xba, 0xb0, 0x26, 0xce, 0x2b, 0x46, 0x1a, 0x32, 0xc7,
0x3d, 0xea, 0x1c, 0x21, 0x0e, 0x95, 0x64, 0x87, 0x3c, 0x53, 0x84, 0x93,
0x39, 0xae, 0xb3, 0xf9, 0xf6, 0x7c, 0xae, 0x7c, 0x31, 0x91, 0xdc, 0x5b,
0x64, 0x31, 0x4e, 0x12, 0x49, 0x73, 0x9b, 0x31, 0x4e, 0x4a, 0x11, 0x32,
0x05, 0x61, 0x0c, 0xaf, 0x89, 0x17, 0x31, 0x21, 0x31, 0x22, 0x2d, 0xf5,
0x09, 0xae, 0xeb, 0xfc, 0xb9, 0x6b, 0x47, 0x0f, 0x45, 0xf3, 0x61, 0x71,
0xbd, 0x61, 0x69, 0xf8, 0xdb, 0xfd, 0x87, 0xdf, 0xe3, 0x1a, 0x53, 0x46,
0x42, 0x12, 0x27, 0x98, 0x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ets/js/controllers.js",
)

View file

@ -16,7 +16,7 @@ type Message struct {
To []*Path
Content *Content
Created time.Time
MIME *MIMEBody
MIME *MIMEBody // FIXME refactor to use Content.MIME
}
type Path struct {
@ -30,6 +30,7 @@ type Content struct {
Headers map[string][]string
Body string
Size int
MIME *MIMEBody
}
type SMTPMessage struct {
@ -43,6 +44,8 @@ type MIMEBody struct {
Parts []*Content
}
// TODO support nested MIME content
func ParseSMTPMessage(m *SMTPMessage, hostname string) *Message {
arr := make([]*Path, 0)
for _, path := range m.To {
@ -68,7 +71,9 @@ func ParseSMTPMessage(m *SMTPMessage, hostname string) *Message {
}
func (content *Content) IsMIME() bool {
return strings.HasPrefix(content.Headers["Content-Type"][0], "multipart/")
header, ok := content.Headers["Content-Type"]
if !ok { return false }
return strings.HasPrefix(header[0], "multipart/")
}
func (content *Content) ParseMIMEBody() *MIMEBody {
@ -80,7 +85,12 @@ func (content *Content) ParseMIMEBody() *MIMEBody {
parts := make([]*Content, 0)
for m := range p {
if len(p[m]) > 0 {
parts = append(parts, ContentFromString(strings.Trim(p[m], "\r\n")))
part := ContentFromString(strings.Trim(p[m], "\r\n"))
if(part.IsMIME()) {
log.Printf("Parsing inner MIME body")
part.MIME = part.ParseMIMEBody()
}
parts = append(parts, part)
}
}