Release messages via SMTP

This commit is contained in:
Ian Kent 2014-04-27 17:31:00 +01:00
parent d80439b0fa
commit 2b739224a7
4 changed files with 378 additions and 233 deletions

View file

@ -4,6 +4,8 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce) {
$scope.cache = {};
$scope.previewAllHeaders = false;
$scope.eventsPending = [];
$scope.refresh = function() {
$http.get('/api/v1/messages').success(function(data) {
$scope.messages = data;
@ -93,6 +95,26 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce) {
$('#confirm-delete-all').modal('show');
}
$scope.releaseOne = function(message) {
$scope.releasing = message;
$('#release-one').modal('show');
}
$scope.confirmReleaseMessage = function() {
$('#release-one').modal('hide');
var message = $scope.releasing;
$scope.releasing = null;
$http.post('/api/v1/messages/' + message.Id + '/release', {
email: $('#release-message-email').val(),
host: $('#release-message-smtp-host').val(),
port: $('#release-message-smtp-port').val(),
}).success(function() {
alert("Message released")
}).error(function(e) {
alert("Failed to release message: " + e)
});
}
$scope.getSource = function(message) {
var source = "";
$.each(message.Content.Headers, function(k, v) {

View file

@ -114,6 +114,38 @@
</div>
</div>
<div class="modal fade" id="release-one">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Release message</h4>
</div>
<div class="modal-body">
<p>To release this message, enter a recipient and SMTP server address:</p>
<form role="form">
<div class="form-group">
<label for="release-message-email">Email address</label>
<input type="email" autofocus class="form-control" id="release-message-email" placeholder="someone@example.com">
</div>
<div class="form-group">
<label for="release-message-smtp-host">SMTP server</label>
<input type="text" class="form-control" id="release-message-smtp-host" placeholder="mail.example.com">
</div>
<div class="form-group">
<label for="release-message-smtp-port">SMTP port</label>
<input type="number" class="form-control" id="release-message-smtp-port" value="25">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" ng-click="confirmReleaseMessage()">Release message</button>
</div>
</div>
</div>
</div>
<div class="messages">
<div id="messages-container">
<table class="table">
@ -145,6 +177,7 @@
<td>
<button class="btn btn-xs btn-default" title="Delete" ng-click="deleteOne(message)"><span class="glyphicon glyphicon-remove"></span></button>
<a class="btn btn-xs btn-default" title="Delete" href="/api/v1/messages/{{ message.Id }}/download"><span class="glyphicon glyphicon-save"></span></a>
<button class="btn btn-xs btn-default" title="Release" ng-click="releaseOne(message)"><span class="glyphicon glyphicon-share"></span></button>
</td>
</tr>
</tbody>

View file

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

View file

@ -4,7 +4,9 @@ import (
"log"
"encoding/json"
"net/http"
"net/smtp"
"regexp"
"github.com/ian-kent/MailHog/mailhog/data"
"github.com/ian-kent/MailHog/mailhog/config"
"github.com/ian-kent/MailHog/mailhog/storage"
"github.com/ian-kent/MailHog/mailhog/http/handler"
@ -16,6 +18,12 @@ type APIv1 struct {
server *http.Server
}
type ReleaseConfig struct {
Email string
Host string
Port string
}
func CreateAPIv1(exitCh chan int, conf *config.Config, server *http.Server) *APIv1 {
log.Println("Creating API v1")
apiv1 := &APIv1{
@ -29,6 +37,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]+)/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]+)/release/?$"), apiv1.release_one)
return apiv1
}
@ -122,6 +131,52 @@ func (apiv1 *APIv1) delete_all(w http.ResponseWriter, r *http.Request, route *ha
}
}
func (apiv1 *APIv1) release_one(w http.ResponseWriter, r *http.Request, route *handler.Route) {
match := route.Pattern.FindStringSubmatch(r.URL.Path)
id := match[1]
log.Printf("[APIv1] POST /api/v1/messages/%s/release\n", id)
w.Header().Set("Content-Type", "text/json")
var msg = &data.Message{}
switch apiv1.config.Storage.(type) {
case *storage.MongoDB:
msg, _ = apiv1.config.Storage.(*storage.MongoDB).Load(id)
case *storage.Memory:
msg, _ = apiv1.config.Storage.(*storage.Memory).Load(id)
default:
// FIXME 404?
}
decoder := json.NewDecoder(r.Body)
var cfg ReleaseConfig
err := decoder.Decode(&cfg)
if err != nil {
log.Printf("Error decoding request body: %s", err)
// TODO 400?
return
}
log.Printf("Releasing to %s (via %s:%s)", cfg.Email, cfg.Host, cfg.Port)
log.Printf("Got message: %s", msg.Id)
bytes := make([]byte, 0)
for h, l := range msg.Content.Headers {
for _, v := range l {
bytes = append(bytes, []byte(h + ": " + v + "\r\n")...)
}
}
bytes = append(bytes, []byte("\r\n" + msg.Content.Body)...)
err = smtp.SendMail(cfg.Host + ":" + cfg.Port, nil, "nobody@" + apiv1.config.Hostname, []string{cfg.Email}, bytes)
if err != nil {
log.Printf("Failed to release message: %s", err)
w.WriteHeader(500)
return
}
w.WriteHeader(200)
log.Printf("Message released successfully")
}
func (apiv1 *APIv1) delete_one(w http.ResponseWriter, r *http.Request, route *handler.Route) {
match := route.Pattern.FindStringSubmatch(r.URL.Path)
id := match[1]