Minor cleanup

This commit is contained in:
Ian Kent 2014-11-22 18:45:14 +00:00
parent b46525f223
commit 2fe16ec68e
10 changed files with 433 additions and 382 deletions

View file

@ -129,17 +129,17 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
$scope.refresh(); $scope.refresh();
$scope.selectMessage = function(message) { $scope.selectMessage = function(message) {
if($scope.cache[message.Id]) { if($scope.cache[message.ID]) {
$scope.preview = $scope.cache[message.Id]; $scope.preview = $scope.cache[message.ID];
reflow(); reflow();
} else { } else {
$scope.preview = message; $scope.preview = message;
var e = $scope.startEvent("Loading message", message.Id, "glyphicon-download-alt"); var e = $scope.startEvent("Loading message", message.ID, "glyphicon-download-alt");
$http.get('/api/v1/messages/' + message.Id).success(function(data) { $http.get('/api/v1/messages/' + message.ID).success(function(data) {
$scope.cache[message.Id] = data; $scope.cache[message.ID] = data;
data.previewHTML = $sce.trustAsHtml($scope.getMessageHTML(data)); data.previewHTML = $sce.trustAsHtml($scope.getMessageHTML(data));
$scope.preview = data; $scope.preview = data;
preview = $scope.cache[message.Id]; preview = $scope.cache[message.ID];
reflow(); reflow();
e.done(); e.done();
}); });
@ -224,9 +224,9 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
var message = $scope.releasing; var message = $scope.releasing;
$scope.releasing = null; $scope.releasing = null;
var e = $scope.startEvent("Releasing message", message.Id, "glyphicon-share"); var e = $scope.startEvent("Releasing message", message.ID, "glyphicon-share");
$http.post('/api/v1/messages/' + message.Id + '/release', { $http.post('/api/v1/messages/' + message.ID + '/release', {
email: $('#release-message-email').val(), email: $('#release-message-email').val(),
host: $('#release-message-smtp-host').val(), host: $('#release-message-smtp-host').val(),
port: $('#release-message-smtp-port').val(), port: $('#release-message-smtp-port').val(),
@ -259,8 +259,8 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
} }
$scope.deleteOne = function(message) { $scope.deleteOne = function(message) {
var e = $scope.startEvent("Deleting message", message.Id, "glyphicon-remove"); var e = $scope.startEvent("Deleting message", message.ID, "glyphicon-remove");
$http.delete('/api/v1/messages/' + message.Id).success(function() { $http.delete('/api/v1/messages/' + message.ID).success(function() {
if($scope.preview._id == message._id) $scope.preview = null; if($scope.preview._id == message._id) $scope.preview = null;
$scope.refresh(); $scope.refresh();
e.done(); e.done();

View file

@ -173,7 +173,7 @@
</span> </span>
</td> </td>
<td> <td>
{{ tryDecodeMime(message.Content.Headers.Subject.0) }} {{ tryDecodeMime(message.Content.Headers["Subject"][0]) }}
</td> </td>
<td> <td>
{{ date(message.Created) }} {{ date(message.Created) }}

View file

@ -453,7 +453,7 @@ func assets_js_controllers_js() ([]byte, error) {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xbc, 0x19, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xbc, 0x19,
0x6d, 0x6f, 0xdb, 0xb8, 0xf9, 0xb3, 0xfd, 0x2b, 0x38, 0x2d, 0x38, 0xcb, 0x6d, 0x6f, 0xdb, 0xb8, 0xf9, 0xb3, 0xfd, 0x2b, 0x38, 0x2d, 0x38, 0xcb,
0x8d, 0x2d, 0x27, 0xc0, 0xb0, 0x0f, 0xf1, 0x7a, 0x87, 0x2e, 0x69, 0xd1, 0x8d, 0x2d, 0x27, 0xc0, 0xb0, 0x0f, 0xf1, 0x7a, 0x87, 0x2e, 0x69, 0xd1,
0x0c, 0xf5, 0x52, 0x5c, 0xfa, 0x61, 0x40, 0x2e, 0x18, 0x18, 0x8b, 0xb6, 0x0e, 0xf1, 0x52, 0x5c, 0xfa, 0x61, 0x40, 0x2e, 0x18, 0x18, 0x8b, 0xb6,
0x84, 0xa3, 0x5e, 0x40, 0xd2, 0xf1, 0x05, 0x85, 0xff, 0xfb, 0x1e, 0x8a, 0x84, 0xa3, 0x5e, 0x40, 0xd2, 0xf1, 0x05, 0x85, 0xff, 0xfb, 0x1e, 0x8a,
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 0xb9, 0x3f, 0xed, 0x1d, 0x11, 0xd7, 0x14, 0x73, 0xc0, 0xe8, 0x8d,
0x79, 0x8b, 0x05, 0xfa, 0x74, 0xfb, 0xaf, 0xd5, 0x47, 0xf4, 0x94, 0x0b, 0xbc, 0xc5, 0x02, 0x7d, 0xfa, 0xf2, 0xaf, 0xd5, 0x47, 0xf4, 0x94, 0x0b,
0x10, 0x96, 0x8b, 0x17, 0x7b, 0x05, 0x81, 0x2e, 0xb2, 0x9c, 0x27, 0x4a, 0x10, 0x96, 0x8b, 0x17, 0x7b, 0x05, 0x81, 0x2e, 0xb2, 0x9c, 0x27, 0x4a,
0x88, 0x76, 0xb8, 0x6a, 0xc7, 0x45, 0x4f, 0xdb, 0x79, 0x0a, 0x8d, 0x9d, 0x88, 0x76, 0xb8, 0x6a, 0xc7, 0x45, 0x4f, 0xdb, 0x79, 0x0a, 0x8d, 0x9d,
0xb0, 0xc8, 0x85, 0x68, 0x87, 0x80, 0x51, 0x6e, 0x90, 0x04, 0xdf, 0xad, 0xb0, 0xc8, 0x85, 0x68, 0x87, 0x80, 0x51, 0x6e, 0x90, 0x04, 0xdf, 0xad,
@ -534,90 +534,90 @@ func assets_js_controllers_js() ([]byte, error) {
0x6c, 0xe0, 0xe7, 0x72, 0x50, 0xc6, 0x39, 0xf4, 0x6c, 0x24, 0xf0, 0x13, 0x6c, 0xe0, 0xe7, 0x72, 0x50, 0xc6, 0x39, 0xf4, 0x6c, 0x24, 0xf0, 0x13,
0x25, 0x48, 0x3c, 0x55, 0xe9, 0x0b, 0x78, 0x7f, 0x32, 0x4d, 0x28, 0x29, 0x25, 0x48, 0x3c, 0x55, 0xe9, 0x0b, 0x78, 0x7f, 0x32, 0x4d, 0x28, 0x29,
0xb7, 0x22, 0x0b, 0x18, 0x31, 0xb2, 0x61, 0x84, 0x67, 0x7d, 0xe4, 0x4d, 0xb7, 0x22, 0x0b, 0x18, 0x31, 0xb2, 0x61, 0x84, 0x67, 0x7d, 0xe4, 0x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2b, 0x55, 0x2d, 0xd5, 0xcb, 0x8c,
0x46, 0x71, 0x3f, 0x6d, 0xd7, 0x0c, 0x36, 0x39, 0x6f, 0x5f, 0xec, 0x5d, 0xe2, 0x7e, 0xda, 0xae, 0x19, 0x6c, 0x72, 0xde, 0xbe, 0xd8, 0xbb, 0x94,
0xca, 0xdc, 0xeb, 0xaf, 0x8b, 0x2b, 0x63, 0xf3, 0x3e, 0x8b, 0x1d, 0xaf, 0xb9, 0xd7, 0x5f, 0x17, 0x57, 0xc6, 0xe6, 0x7d, 0x16, 0x3b, 0x5e, 0xbf,
0x5f, 0xa7, 0x98, 0xe1, 0xd5, 0x04, 0x57, 0x76, 0x38, 0xc9, 0x00, 0xaf, 0x4e, 0x31, 0xc3, 0xab, 0x09, 0xae, 0xec, 0x70, 0x92, 0x01, 0x5e, 0x5f,
0x2f, 0x74, 0xc6, 0x1c, 0x6e, 0xf7, 0xd5, 0xba, 0x27, 0xff, 0xce, 0x53, 0xe8, 0x8c, 0x39, 0xdc, 0xee, 0xab, 0x75, 0x4f, 0xfe, 0x9d, 0xa7, 0xf2,
0xf9, 0xb8, 0x6f, 0xb0, 0xe1, 0x73, 0xda, 0x5d, 0xc0, 0x8c, 0x79, 0xfa, 0x71, 0xdf, 0x60, 0xc3, 0xe7, 0xb4, 0xbb, 0x80, 0x19, 0xf3, 0xf4, 0xdb,
0xed, 0x19, 0x26, 0xa3, 0xb5, 0x9a, 0xfc, 0xfd, 0x4f, 0x00, 0x00, 0x00, 0x33, 0x4c, 0x46, 0x6b, 0x35, 0xf9, 0xfb, 0x9f, 0x00, 0x00, 0x00, 0xff,
0xff, 0xff, 0x78, 0x66, 0xd6, 0x16, 0x22, 0x1d, 0x00, 0x00, 0xff, 0x5a, 0x0a, 0x34, 0xed, 0x22, 0x1d, 0x00, 0x00,
}, },
"assets/js/controllers.js", "assets/js/controllers.js",
) )
@ -1177,198 +1177,198 @@ func assets_js_strutil_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, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xe4, 0x59, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xe4, 0x59,
0xed, 0x6f, 0xdb, 0xb8, 0x19, 0xff, 0x7e, 0x7f, 0x05, 0xab, 0x66, 0x8b, 0x5b, 0x6f, 0xdb, 0xc8, 0x15, 0x7e, 0xdf, 0x5f, 0x31, 0x61, 0xdc, 0x5a,
0xbd, 0x59, 0xb2, 0xd3, 0x6b, 0x83, 0xd5, 0xb1, 0xbd, 0x2b, 0xd2, 0x1b, 0x6a, 0x45, 0x4a, 0xce, 0x26, 0x46, 0x23, 0x4b, 0xea, 0x06, 0xce, 0x16,
0x7a, 0xc0, 0xb2, 0x15, 0x97, 0x0c, 0xfb, 0x50, 0x04, 0x03, 0x2d, 0xd1, 0x59, 0xa0, 0x6e, 0x83, 0xb5, 0x8b, 0x3e, 0x04, 0x46, 0x31, 0x22, 0x47,
0x16, 0xaf, 0x94, 0x28, 0x88, 0xb4, 0x9d, 0x5c, 0xea, 0xff, 0x7d, 0x0f, 0xe2, 0x6c, 0x86, 0x1c, 0x82, 0x33, 0x92, 0xec, 0x75, 0xf4, 0xdf, 0x7b,
0xdf, 0x24, 0x51, 0x96, 0x5f, 0x82, 0x1c, 0xf6, 0x61, 0x57, 0x34, 0xb0, 0xe6, 0x46, 0x72, 0x28, 0xea, 0x62, 0x78, 0xd1, 0x87, 0x6e, 0x10, 0x43,
0x24, 0x92, 0xcf, 0xeb, 0xef, 0xf9, 0xf1, 0xa1, 0x34, 0x11, 0xf2, 0x91, 0xbc, 0xcc, 0xb9, 0x7f, 0xe7, 0x9b, 0x43, 0x72, 0x22, 0xe4, 0x23, 0x23,
0x91, 0xd9, 0x77, 0x08, 0x45, 0x19, 0x11, 0x02, 0x2f, 0x89, 0x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0x87, 0x10, 0x92, 0x49, 0xf3, 0x41, 0x7d, 0x2f, 0x12, 0x65, 0x63, 0x08, 0xa1, 0x98, 0x34, 0x1f, 0xd4, 0xe7, 0x82, 0xaf,
0xf8, 0xaa, 0x8c, 0x49, 0x97, 0x23, 0x30, 0xa3, 0x21, 0x76, 0x81, 0x33, 0xca, 0x98, 0x74, 0x05, 0x02, 0x2b, 0x1a, 0x6a, 0x17, 0x38, 0xa3, 0x0c,
0xca, 0x00, 0x06, 0xd7, 0x30, 0x9f, 0x02, 0x5a, 0xfe, 0x41, 0x36, 0x03, 0x60, 0x70, 0x0d, 0xeb, 0x29, 0xa0, 0xe5, 0x1f, 0x64, 0x33, 0x70, 0x27,
0x77, 0x33, 0x40, 0xb7, 0x8f, 0x42, 0x92, 0x6c, 0x80, 0x16, 0xf4, 0x81, 0x03, 0x74, 0xfb, 0x28, 0x24, 0xc9, 0x06, 0x68, 0x41, 0x1f, 0x48, 0x12,
0x24, 0xa1, 0x8e, 0xe1, 0x4e, 0xf4, 0x22, 0x48, 0x78, 0xe8, 0xf2, 0xd5, 0xea, 0x1c, 0xee, 0x64, 0x2f, 0x82, 0x82, 0x87, 0xae, 0x5e, 0xad, 0x2a,
0xca, 0xd2, 0xc8, 0xe7, 0xa6, 0x10, 0x14, 0x89, 0xb8, 0xe4, 0xac, 0xb2, 0x8d, 0x7c, 0x6e, 0x0a, 0xc1, 0x90, 0x88, 0x4b, 0xce, 0x2a, 0xff, 0xa3,
0x3f, 0xca, 0x68, 0x46, 0xc2, 0x02, 0x97, 0x3b, 0x4b, 0x2f, 0x1a, 0x65, 0x8c, 0x66, 0x24, 0x2c, 0x70, 0xb9, 0x23, 0x7a, 0xd1, 0x68, 0xc3, 0x68,
0x18, 0xad, 0x68, 0x58, 0x12, 0x41, 0x7f, 0x55, 0xd0, 0x0a, 0x53, 0x9c, 0x45, 0xc3, 0x92, 0x08, 0xfa, 0xab, 0x82, 0x56, 0x98, 0xe2, 0x3c, 0x61,
0x27,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xa6, 0x41, 0xc6, 0x13, 0xcc, 0xd0, 0x02, 0xf6, 0xa4, 0x00, 0xd1, 0x64, 0x9e, 0x60, 0x86, 0x16, 0xb0, 0x27, 0x05, 0x88, 0x26, 0xd3, 0x00, 0x40,
0x1a, 0x00, 0x08, 0x20, 0x14, 0x59, 0x98, 0x40, 0x6f, 0x05, 0x3c, 0x8e, 0x00, 0xa9, 0xc8, 0xc2, 0x04, 0x66, 0x2b, 0xe0, 0x71, 0xcc, 0x58, 0xa0,
0x19, 0x0b, 0x14, 0x3d, 0xed, 0x2c, 0x09, 0x13, 0x8a, 0x19, 0x5f, 0xea, 0xe8, 0x69, 0x47, 0x24, 0x4c, 0x28, 0x66, 0x7c, 0xa9, 0x6f, 0x76, 0xdd,
0xc1, 0xae, 0x61, 0x5b, 0x5c, 0x76, 0xbc, 0x6b, 0x86, 0xd9, 0x08, 0xab, 0xb6, 0xcd, 0x65, 0xef, 0x77, 0xad, 0x30, 0x1b, 0x61, 0xb5, 0x00, 0x96,
0x09, 0x30, 0x65, 0xbe, 0x02, 0xce, 0xcc, 0x91, 0x7c, 0x2c, 0xc8, 0x34, 0xcc, 0x57, 0xc0, 0x99, 0x39, 0x92, 0x8f, 0x05, 0x99, 0x06, 0xe6, 0x24,
0x30, 0x37, 0x81, 0x5b, 0x13, 0x33, 0x2e, 0xc0, 0xc4, 0x04, 0x4b, 0x0c, 0x70, 0x32, 0x31, 0xe3, 0x02, 0x5c, 0x4c, 0xb0, 0xc4, 0x60, 0x5a, 0x64,
0xaa, 0x45, 0x46, 0x2b, 0x41, 0x01, 0xc2, 0x25, 0xc5, 0xa1, 0xe9, 0x84, 0xb4, 0x52, 0x14, 0x20, 0x5c, 0x52, 0x1c, 0x9a, 0x49, 0x68, 0x1a, 0xc8,
0xa6, 0x81, 0x2c, 0x57, 0x24, 0x98, 0xfd, 0x51, 0x02, 0xd7, 0x8b, 0xab, 0x72, 0x45, 0x82, 0xd9, 0x1f, 0x25, 0x70, 0xbd, 0x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templates/index.html", "assets/templates/index.html",
) )

View file

@ -1,18 +1,40 @@
package data package data
import ( import (
"crypto/rand"
"encoding/base64"
"log" "log"
"regexp" "regexp"
"strings" "strings"
"time" "time"
"labix.org/v2/mgo/bson"
) )
// MessageID represents the ID of an SMTP message including the hostname part
type MessageID string
// NewMessageID generates a new message ID
func NewMessageID(hostname string) (MessageID, error) {
size := 32
rb := make([]byte, size)
_, err := rand.Read(rb)
if err != nil {
return MessageID(""), err
}
rs := base64.URLEncoding.EncodeToString(rb)
return MessageID(rs + "@" + hostname), nil
}
// Messages represents an array of Messages
// - TODO is this even required?
type Messages []Message type Messages []Message
// Message represents a parsed SMTP message
type Message struct { type Message struct {
Id string ID MessageID
From *Path From *Path
To []*Path To []*Path
Content *Content Content *Content
@ -20,6 +42,7 @@ type Message struct {
MIME *MIMEBody // FIXME refactor to use Content.MIME MIME *MIMEBody // FIXME refactor to use Content.MIME
} }
// Path represents an SMTP forward-path or return-path
type Path struct { type Path struct {
Relays []string Relays []string
Mailbox string Mailbox string
@ -27,6 +50,7 @@ type Path struct {
Params string Params string
} }
// Content represents the body content of an SMTP message
type Content struct { type Content struct {
Headers map[string][]string Headers map[string][]string
Body string Body string
@ -34,6 +58,7 @@ type Content struct {
MIME *MIMEBody MIME *MIMEBody
} }
// SMTPMessage represents a raw SMTP message
type SMTPMessage struct { type SMTPMessage struct {
From string From string
To []string To []string
@ -41,17 +66,21 @@ type SMTPMessage struct {
Helo string Helo string
} }
// MIMEBody represents a collection of MIME parts
type MIMEBody struct { type MIMEBody struct {
Parts []*Content Parts []*Content
} }
func ParseSMTPMessage(m *SMTPMessage, hostname string) *Message { // Parse converts a raw SMTP message to a parsed MIME message
arr := make([]*Path, 0) func (m *SMTPMessage) Parse(hostname string) *Message {
var arr []*Path
for _, path := range m.To { for _, path := range m.To {
arr = append(arr, PathFromString(path)) arr = append(arr, PathFromString(path))
} }
id, _ := NewMessageID(hostname)
msg := &Message{ msg := &Message{
Id: bson.NewObjectId().Hex(), ID: id,
From: PathFromString(m.From), From: PathFromString(m.From),
To: arr, To: arr,
Content: ContentFromString(m.Data), Content: ContentFromString(m.Data),
@ -63,12 +92,13 @@ func ParseSMTPMessage(m *SMTPMessage, hostname string) *Message {
msg.MIME = msg.Content.ParseMIMEBody() msg.MIME = msg.Content.ParseMIMEBody()
} }
msg.Content.Headers["Message-ID"] = []string{msg.Id + "@" + hostname} msg.Content.Headers["Message-ID"] = []string{string(id)}
msg.Content.Headers["Received"] = []string{"from " + m.Helo + " by " + hostname + " (Go-MailHog)\r\n id " + msg.Id + "@" + hostname + "; " + time.Now().Format(time.RFC1123Z)} msg.Content.Headers["Received"] = []string{"from " + m.Helo + " by " + hostname + " (Go-MailHog)\r\n id " + string(id) + "; " + time.Now().Format(time.RFC1123Z)}
msg.Content.Headers["Return-Path"] = []string{"<" + m.From + ">"} msg.Content.Headers["Return-Path"] = []string{"<" + m.From + ">"}
return msg return msg
} }
// IsMIME detects a valid MIME header
func (content *Content) IsMIME() bool { func (content *Content) IsMIME() bool {
header, ok := content.Headers["Content-Type"] header, ok := content.Headers["Content-Type"]
if !ok { if !ok {
@ -77,15 +107,16 @@ func (content *Content) IsMIME() bool {
return strings.HasPrefix(header[0], "multipart/") return strings.HasPrefix(header[0], "multipart/")
} }
// ParseMIMEBody parses SMTP message content into multiple MIME parts
func (content *Content) ParseMIMEBody() *MIMEBody { func (content *Content) ParseMIMEBody() *MIMEBody {
parts := make([]*Content, 0) var parts []*Content
if hdr, ok := content.Headers["Content-Type"]; ok { if hdr, ok := content.Headers["Content-Type"]; ok {
if len(hdr) > 0 { if len(hdr) > 0 {
re := regexp.MustCompile("boundary=\"([^\"]+)\"") re := regexp.MustCompile("boundary=\"([^\"]+)\"")
match := re.FindStringSubmatch(hdr[0]) match := re.FindStringSubmatch(hdr[0])
if len(match) < 2 { if len(match) < 2 {
log.Printf("Boundary not found: %s") log.Printf("Boundary not found: %s", hdr[0])
} }
log.Printf("Got boundary: %s", match[1]) log.Printf("Got boundary: %s", match[1])
@ -109,8 +140,9 @@ func (content *Content) ParseMIMEBody() *MIMEBody {
} }
} }
// PathFromString parses a forward-path or reverse-path into its parts
func PathFromString(path string) *Path { func PathFromString(path string) *Path {
relays := make([]string, 0) var relays []string
email := path email := path
if strings.Contains(path, ":") { if strings.Contains(path, ":") {
x := strings.SplitN(path, ":", 2) x := strings.SplitN(path, ":", 2)
@ -134,6 +166,7 @@ func PathFromString(path string) *Path {
} }
} }
// ContentFromString parses SMTP content into separate headers and body
func ContentFromString(data string) *Content { func ContentFromString(data string) *Content {
log.Printf("Parsing Content from string: '%s'", data) log.Printf("Parsing Content from string: '%s'", data)
x := strings.SplitN(data, "\r\n\r\n", 2) x := strings.SplitN(data, "\r\n\r\n", 2)
@ -161,11 +194,10 @@ func ContentFromString(data string) *Content {
Headers: h, Headers: h,
Body: body, Body: body,
} }
} else { }
return &Content{ return &Content{
Size: len(data), Size: len(data),
Headers: h, Headers: h,
Body: x[0], Body: x[0],
} }
} }
}

View file

@ -2,14 +2,15 @@ package api
import ( import (
"encoding/json" "encoding/json"
"net/smtp"
"strconv"
"github.com/ian-kent/Go-MailHog/mailhog/config" "github.com/ian-kent/Go-MailHog/mailhog/config"
"github.com/ian-kent/Go-MailHog/mailhog/data" "github.com/ian-kent/Go-MailHog/mailhog/data"
"github.com/ian-kent/Go-MailHog/mailhog/storage" "github.com/ian-kent/Go-MailHog/mailhog/storage"
"github.com/ian-kent/go-log/log" "github.com/ian-kent/go-log/log"
gotcha "github.com/ian-kent/gotcha/app" gotcha "github.com/ian-kent/gotcha/app"
"github.com/ian-kent/gotcha/http" "github.com/ian-kent/gotcha/http"
"net/smtp"
"strconv"
) )
type APIv1 struct { type APIv1 struct {
@ -92,8 +93,8 @@ func (apiv1 *APIv1) messages(session *http.Session) {
bytes, _ := json.Marshal(messages) bytes, _ := json.Marshal(messages)
session.Response.Headers.Add("Content-Type", "text/json") session.Response.Headers.Add("Content-Type", "text/json")
session.Response.Write(bytes) session.Response.Write(bytes)
case *storage.Memory: case *storage.InMemory:
messages, _ := apiv1.config.Storage.(*storage.Memory).List(0, 1000) messages, _ := apiv1.config.Storage.(*storage.InMemory).List(0, 1000)
bytes, _ := json.Marshal(messages) bytes, _ := json.Marshal(messages)
session.Response.Headers.Add("Content-Type", "text/json") session.Response.Headers.Add("Content-Type", "text/json")
session.Response.Write(bytes) session.Response.Write(bytes)
@ -112,8 +113,8 @@ func (apiv1 *APIv1) message(session *http.Session) {
bytes, _ := json.Marshal(message) bytes, _ := json.Marshal(message)
session.Response.Headers.Add("Content-Type", "text/json") session.Response.Headers.Add("Content-Type", "text/json")
session.Response.Write(bytes) session.Response.Write(bytes)
case *storage.Memory: case *storage.InMemory:
message, _ := apiv1.config.Storage.(*storage.Memory).Load(id) message, _ := apiv1.config.Storage.(*storage.InMemory).Load(id)
bytes, _ := json.Marshal(message) bytes, _ := json.Marshal(message)
session.Response.Headers.Add("Content-Type", "text/json") session.Response.Headers.Add("Content-Type", "text/json")
session.Response.Write(bytes) session.Response.Write(bytes)
@ -138,8 +139,8 @@ func (apiv1 *APIv1) download(session *http.Session) {
} }
} }
session.Response.Write([]byte("\r\n" + message.Content.Body)) session.Response.Write([]byte("\r\n" + message.Content.Body))
case *storage.Memory: case *storage.InMemory:
message, _ := apiv1.config.Storage.(*storage.Memory).Load(id) message, _ := apiv1.config.Storage.(*storage.InMemory).Load(id)
for h, l := range message.Content.Headers { for h, l := range message.Content.Headers {
for _, v := range l { for _, v := range l {
session.Response.Write([]byte(h + ": " + v + "\r\n")) session.Response.Write([]byte(h + ": " + v + "\r\n"))
@ -169,8 +170,8 @@ func (apiv1 *APIv1) download_part(session *http.Session) {
} }
} }
session.Response.Write([]byte("\r\n" + message.MIME.Parts[part].Body)) session.Response.Write([]byte("\r\n" + message.MIME.Parts[part].Body))
case *storage.Memory: case *storage.InMemory:
message, _ := apiv1.config.Storage.(*storage.Memory).Load(id) message, _ := apiv1.config.Storage.(*storage.InMemory).Load(id)
for h, l := range message.MIME.Parts[part].Headers { for h, l := range message.MIME.Parts[part].Headers {
for _, v := range l { for _, v := range l {
session.Response.Headers.Add(h, v) session.Response.Headers.Add(h, v)
@ -189,8 +190,8 @@ func (apiv1 *APIv1) delete_all(session *http.Session) {
switch apiv1.config.Storage.(type) { switch apiv1.config.Storage.(type) {
case *storage.MongoDB: case *storage.MongoDB:
apiv1.config.Storage.(*storage.MongoDB).DeleteAll() apiv1.config.Storage.(*storage.MongoDB).DeleteAll()
case *storage.Memory: case *storage.InMemory:
apiv1.config.Storage.(*storage.Memory).DeleteAll() apiv1.config.Storage.(*storage.InMemory).DeleteAll()
default: default:
session.Response.Status = 500 session.Response.Status = 500
return return
@ -206,8 +207,8 @@ func (apiv1 *APIv1) release_one(session *http.Session) {
switch apiv1.config.Storage.(type) { switch apiv1.config.Storage.(type) {
case *storage.MongoDB: case *storage.MongoDB:
msg, _ = apiv1.config.Storage.(*storage.MongoDB).Load(id) msg, _ = apiv1.config.Storage.(*storage.MongoDB).Load(id)
case *storage.Memory: case *storage.InMemory:
msg, _ = apiv1.config.Storage.(*storage.Memory).Load(id) msg, _ = apiv1.config.Storage.(*storage.InMemory).Load(id)
default: default:
session.Response.Status = 500 session.Response.Status = 500
return return
@ -224,7 +225,7 @@ func (apiv1 *APIv1) release_one(session *http.Session) {
} }
log.Printf("Releasing to %s (via %s:%s)", cfg.Email, cfg.Host, cfg.Port) log.Printf("Releasing to %s (via %s:%s)", cfg.Email, cfg.Host, cfg.Port)
log.Printf("Got message: %s", msg.Id) log.Printf("Got message: %s", msg.ID)
bytes := make([]byte, 0) bytes := make([]byte, 0)
for h, l := range msg.Content.Headers { for h, l := range msg.Content.Headers {
@ -251,8 +252,8 @@ func (apiv1 *APIv1) delete_one(session *http.Session) {
switch apiv1.config.Storage.(type) { switch apiv1.config.Storage.(type) {
case *storage.MongoDB: case *storage.MongoDB:
apiv1.config.Storage.(*storage.MongoDB).DeleteOne(id) apiv1.config.Storage.(*storage.MongoDB).DeleteOne(id)
case *storage.Memory: case *storage.InMemory:
apiv1.config.Storage.(*storage.Memory).DeleteOne(id) apiv1.config.Storage.(*storage.InMemory).DeleteOne(id)
default: default:
session.Response.Status = 500 session.Response.Status = 500
} }

View file

@ -18,6 +18,7 @@ type Protocol struct {
state State state State
message *data.SMTPMessage message *data.SMTPMessage
MessageIDHandler func() (string, error)
LogHandler func(message string, args ...interface{}) LogHandler func(message string, args ...interface{})
MessageReceivedHandler func(*data.Message) (string, error) MessageReceivedHandler func(*data.Message) (string, error)
} }
@ -62,7 +63,7 @@ const (
INVALID = State(-1) INVALID = State(-1)
ESTABLISH = State(iota) ESTABLISH = State(iota)
AUTH AUTH
AUTH2 AUTHLOGIN
MAIL MAIL
RCPT RCPT
DATA DATA
@ -74,7 +75,7 @@ var StateMap = map[State]string{
INVALID: "INVALID", INVALID: "INVALID",
ESTABLISH: "ESTABLISH", ESTABLISH: "ESTABLISH",
AUTH: "AUTH", AUTH: "AUTH",
AUTH2: "AUTH2", AUTHLOGIN: "AUTHLOGIN",
MAIL: "MAIL", MAIL: "MAIL",
RCPT: "RCPT", RCPT: "RCPT",
DATA: "DATA", DATA: "DATA",
@ -91,8 +92,6 @@ func NewProtocol(cfg *config.Config) *Protocol {
} }
} }
// TODO replace ".." lines with . in data
func (proto *Protocol) logf(message string, args ...interface{}) { func (proto *Protocol) logf(message string, args ...interface{}) {
message = strings.Join([]string{"[PROTO: %s]", message}, " ") message = strings.Join([]string{"[PROTO: %s]", message}, " ")
args = append([]interface{}{StateMap[proto.state]}, args...) args = append([]interface{}{StateMap[proto.state]}, args...)
@ -142,14 +141,17 @@ func (proto *Protocol) Parse(line string) (string, *Reply) {
// ProcessData handles content received (with newlines stripped) while // ProcessData handles content received (with newlines stripped) while
// in the SMTP DATA state // in the SMTP DATA state
func (proto *Protocol) ProcessData(line string) (reply *Reply) { func (proto *Protocol) ProcessData(line string) (reply *Reply) {
proto.message.Data += line + "\n" proto.message.Data += line + "\n"
if strings.HasSuffix(proto.message.Data, "\r\n.\r\n") { if strings.HasSuffix(proto.message.Data, "\r\n.\r\n") {
proto.message.Data = strings.Replace(proto.message.Data, "\r\n..", "\r\n.", -1)
proto.logf("Got EOF, storing message and switching to MAIL state") proto.logf("Got EOF, storing message and switching to MAIL state")
proto.message.Data = strings.TrimSuffix(proto.message.Data, "\r\n.\r\n") proto.message.Data = strings.TrimSuffix(proto.message.Data, "\r\n.\r\n")
proto.state = MAIL proto.state = MAIL
msg := data.ParseSMTPMessage(proto.message, proto.conf.Hostname) msg := proto.message.Parse(proto.conf.Hostname)
if proto.MessageReceivedHandler != nil { if proto.MessageReceivedHandler != nil {
id, err := proto.MessageReceivedHandler(msg) id, err := proto.MessageReceivedHandler(msg)
@ -210,11 +212,11 @@ func (proto *Protocol) Command(command *Command) (reply *Reply) {
proto.logf("Got authentication response: '%s', switching to MAIL state", command.args) proto.logf("Got authentication response: '%s', switching to MAIL state", command.args)
proto.state = MAIL proto.state = MAIL
return &Reply{235, []string{"Authentication successful"}} return &Reply{235, []string{"Authentication successful"}}
case AUTH2 == proto.state: // TODO rename AUTH2 state... case AUTHLOGIN == proto.state:
proto.logf("Got LOGIN authentication response: '%s', switching to AUTH state", command.args) proto.logf("Got LOGIN authentication response: '%s', switching to AUTH state", command.args)
proto.state = AUTH proto.state = AUTH
return &Reply{334, []string{"UGFzc3dvcmQ6"}} return &Reply{334, []string{"UGFzc3dvcmQ6"}}
case MAIL == proto.state: // TODO rename/split state case MAIL == proto.state:
switch command.verb { switch command.verb {
case "AUTH": case "AUTH":
proto.logf("Got AUTH command, staying in MAIL state") proto.logf("Got AUTH command, staying in MAIL state")
@ -224,7 +226,7 @@ func (proto *Protocol) Command(command *Command) (reply *Reply) {
return &Reply{235, []string{"Authentication successful"}} return &Reply{235, []string{"Authentication successful"}}
case "LOGIN" == command.args: case "LOGIN" == command.args:
proto.logf("Got LOGIN authentication, switching to AUTH state") proto.logf("Got LOGIN authentication, switching to AUTH state")
proto.state = AUTH2 proto.state = AUTHLOGIN
return &Reply{334, []string{"VXNlcm5hbWU6"}} return &Reply{334, []string{"VXNlcm5hbWU6"}}
case "PLAIN" == command.args: case "PLAIN" == command.args:
proto.logf("Got PLAIN authentication (no args), switching to AUTH2 state") proto.logf("Got PLAIN authentication (no args), switching to AUTH2 state")
@ -249,9 +251,9 @@ func (proto *Protocol) Command(command *Command) (reply *Reply) {
proto.message.From = from proto.message.From = from
proto.state = RCPT proto.state = RCPT
return ReplySenderOk(from) return ReplySenderOk(from)
case "HELO": // TODO feels hacky case "HELO":
return proto.HELO(command.args) return proto.HELO(command.args)
case "EHLO": // TODO feels hacky? case "EHLO":
return proto.EHLO(command.args) return proto.EHLO(command.args)
default: default:
proto.logf("Got unknown command for MAIL state: '%s'", command) proto.logf("Got unknown command for MAIL state: '%s'", command)

View file

@ -42,12 +42,13 @@ func (c *Session) acceptMessageHandler(msg *data.Message) (id string, err error)
case *storage.MongoDB: case *storage.MongoDB:
c.logf("Storing message using MongoDB") c.logf("Storing message using MongoDB")
id, err = c.conf.Storage.(*storage.MongoDB).Store(msg) id, err = c.conf.Storage.(*storage.MongoDB).Store(msg)
case *storage.Memory: case *storage.InMemory:
c.logf("Storing message using Memory") c.logf("Storing message using Memory")
id, err = c.conf.Storage.(*storage.Memory).Store(msg) id, err = c.conf.Storage.(*storage.InMemory).Store(msg)
default: default:
err = errors.New("Unknown storage stype") err = errors.New("Unknown storage stype")
} }
c.conf.MessageChan <- msg
return return
} }

View file

@ -5,15 +5,17 @@ import (
"github.com/ian-kent/Go-MailHog/mailhog/data" "github.com/ian-kent/Go-MailHog/mailhog/data"
) )
type Memory struct { // InMemory is an in memory storage backend
type InMemory struct {
Config *config.Config Config *config.Config
Messages map[string]*data.Message Messages map[string]*data.Message
MessageIndex []string MessageIndex []string
MessageRIndex map[string]int MessageRIndex map[string]int
} }
func CreateMemory(c *config.Config) *Memory { // CreateInMemory creates a new in memory storage backend
return &Memory{ func CreateInMemory(c *config.Config) *InMemory {
return &InMemory{
Config: c, Config: c,
Messages: make(map[string]*data.Message, 0), Messages: make(map[string]*data.Message, 0),
MessageIndex: make([]string, 0), MessageIndex: make([]string, 0),
@ -21,39 +23,44 @@ func CreateMemory(c *config.Config) *Memory {
} }
} }
func (memory *Memory) Store(m *data.Message) (string, error) { // Store stores a message and returns its storage ID
memory.Messages[m.Id] = m func (memory *InMemory) Store(m *data.Message) (string, error) {
memory.MessageIndex = append(memory.MessageIndex, m.Id) memory.Messages[string(m.ID)] = m
memory.MessageRIndex[m.Id] = len(memory.MessageIndex) - 1 memory.MessageIndex = append(memory.MessageIndex, string(m.ID))
return m.Id, nil memory.MessageRIndex[string(m.ID)] = len(memory.MessageIndex) - 1
return string(m.ID), nil
} }
func (memory *Memory) List(start int, limit int) ([]*data.Message, error) { // List lists stored messages by index
func (memory *InMemory) List(start int, limit int) ([]*data.Message, error) {
if limit > len(memory.MessageIndex) { if limit > len(memory.MessageIndex) {
limit = len(memory.MessageIndex) limit = len(memory.MessageIndex)
} }
messages := make([]*data.Message, 0) var messages []*data.Message
for _, m := range memory.MessageIndex[start:limit] { for _, m := range memory.MessageIndex[start:limit] {
messages = append(messages, memory.Messages[m]) messages = append(messages, memory.Messages[m])
} }
return messages, nil return messages, nil
} }
func (memory *Memory) DeleteOne(id string) error { // DeleteOne deletes an individual message by storage ID
index := memory.MessageRIndex[id] func (memory *InMemory) DeleteOne(id string) error {
delete(memory.Messages, id) index := memory.MessageRIndex[string(id)]
delete(memory.Messages, string(id))
memory.MessageIndex = append(memory.MessageIndex[:index], memory.MessageIndex[index+1:]...) memory.MessageIndex = append(memory.MessageIndex[:index], memory.MessageIndex[index+1:]...)
delete(memory.MessageRIndex, id) delete(memory.MessageRIndex, string(id))
return nil return nil
} }
func (memory *Memory) DeleteAll() error { // DeleteAll deletes all in memory messages
func (memory *InMemory) DeleteAll() error {
memory.Messages = make(map[string]*data.Message, 0) memory.Messages = make(map[string]*data.Message, 0)
memory.MessageIndex = make([]string, 0) memory.MessageIndex = make([]string, 0)
memory.MessageRIndex = make(map[string]int, 0) memory.MessageRIndex = make(map[string]int, 0)
return nil return nil
} }
func (memory *Memory) Load(id string) (*data.Message, error) { // Load returns an individual message by storage ID
return memory.Messages[id], nil func (memory *InMemory) Load(id string) (*data.Message, error) {
return memory.Messages[string(id)], nil
} }

View file

@ -1,19 +1,22 @@
package storage package storage
import ( import (
"log"
"github.com/ian-kent/Go-MailHog/mailhog/config" "github.com/ian-kent/Go-MailHog/mailhog/config"
"github.com/ian-kent/Go-MailHog/mailhog/data" "github.com/ian-kent/Go-MailHog/mailhog/data"
"labix.org/v2/mgo" "labix.org/v2/mgo"
"labix.org/v2/mgo/bson" "labix.org/v2/mgo/bson"
"log"
) )
// MongoDB represents MongoDB backed storage backend
type MongoDB struct { type MongoDB struct {
Session *mgo.Session Session *mgo.Session
Config *config.Config Config *config.Config
Collection *mgo.Collection Collection *mgo.Collection
} }
// CreateMongoDB creates a MongoDB backed storage backend
func CreateMongoDB(c *config.Config) *MongoDB { func CreateMongoDB(c *config.Config) *MongoDB {
log.Printf("Connecting to MongoDB: %s\n", c.MongoUri) log.Printf("Connecting to MongoDB: %s\n", c.MongoUri)
session, err := mgo.Dial(c.MongoUri) session, err := mgo.Dial(c.MongoUri)
@ -28,15 +31,17 @@ func CreateMongoDB(c *config.Config) *MongoDB {
} }
} }
// Store stores a message in MongoDB and returns its storage ID
func (mongo *MongoDB) Store(m *data.Message) (string, error) { func (mongo *MongoDB) Store(m *data.Message) (string, error) {
err := mongo.Collection.Insert(m) err := mongo.Collection.Insert(m)
if err != nil { if err != nil {
log.Printf("Error inserting message: %s", err) log.Printf("Error inserting message: %s", err)
return "", err return "", err
} }
return m.Id, nil return string(m.ID), nil
} }
// List returns a list of messages by index
func (mongo *MongoDB) List(start int, limit int) (*data.Messages, error) { func (mongo *MongoDB) List(start int, limit int) (*data.Messages, error) {
messages := &data.Messages{} messages := &data.Messages{}
err := mongo.Collection.Find(bson.M{}).Skip(start).Limit(limit).Select(bson.M{ err := mongo.Collection.Find(bson.M{}).Skip(start).Limit(limit).Select(bson.M{
@ -55,16 +60,19 @@ func (mongo *MongoDB) List(start int, limit int) (*data.Messages, error) {
return messages, nil return messages, nil
} }
// DeleteOne deletes an individual message by storage ID
func (mongo *MongoDB) DeleteOne(id string) error { func (mongo *MongoDB) DeleteOne(id string) error {
_, err := mongo.Collection.RemoveAll(bson.M{"id": id}) _, err := mongo.Collection.RemoveAll(bson.M{"id": id})
return err return err
} }
// DeleteAll deletes all messages stored in MongoDB
func (mongo *MongoDB) DeleteAll() error { func (mongo *MongoDB) DeleteAll() error {
_, err := mongo.Collection.RemoveAll(bson.M{}) _, err := mongo.Collection.RemoveAll(bson.M{})
return err return err
} }
// Load loads an individual message by storage ID
func (mongo *MongoDB) Load(id string) (*data.Message, error) { func (mongo *MongoDB) Load(id string) (*data.Message, error) {
result := &data.Message{} result := &data.Message{}
err := mongo.Collection.Find(bson.M{"id": id}).One(&result) err := mongo.Collection.Find(bson.M{"id": id}).One(&result)

View file

@ -49,14 +49,14 @@ func configure() {
s := storage.CreateMongoDB(conf) s := storage.CreateMongoDB(conf)
if s == nil { if s == nil {
log.Println("MongoDB storage unavailable, reverting to in-memory storage") log.Println("MongoDB storage unavailable, reverting to in-memory storage")
conf.Storage = storage.CreateMemory(conf) conf.Storage = storage.CreateInMemory(conf)
} else { } else {
log.Println("Connected to MongoDB") log.Println("Connected to MongoDB")
conf.Storage = s conf.Storage = s
} }
} else if storage_type == "memory" { } else if storage_type == "memory" {
log.Println("Using in-memory message storage") log.Println("Using in-memory message storage")
conf.Storage = storage.CreateMemory(conf) conf.Storage = storage.CreateInMemory(conf)
} else { } else {
log.Fatalf("Invalid storage type %s", storage_type) log.Fatalf("Invalid storage type %s", storage_type)
} }