Comparing version 0.6.0 to 0.6.1
@@ -21,6 +21,6 @@ /* global angular, io */ | ||
// Connect Socket.io | ||
var socket = io('http://localhost'); | ||
var socket = io(); | ||
socket.on('newMail', function(data) { | ||
$rootScope.$emit('Refresh'); | ||
$rootScope.$emit('newMail', data); | ||
}); | ||
@@ -27,0 +27,0 @@ |
@@ -23,2 +23,18 @@ /* global app */ | ||
var refreshTimeout = null; | ||
$rootScope.$on('newMail', function(e, newEmail) { | ||
//update model | ||
$scope.items.push(newEmail); | ||
//update DOM at most 5 times per second | ||
if (!refreshTimeout) { | ||
refreshTimeout = setTimeout(function() { | ||
refreshTimeout = null; | ||
$scope.$apply(); | ||
}, 200); | ||
} | ||
}); | ||
// Click event handlers | ||
@@ -25,0 +41,0 @@ $scope.markRead = function(email) { |
@@ -346,8 +346,14 @@ | ||
secureConnection: secure | ||
, auth: { | ||
user: user | ||
, pass: pass | ||
} | ||
, maxMessages: 1 | ||
, debug: true | ||
}; | ||
if (pass && user) { | ||
options.auth = { | ||
user: user, | ||
pass: pass | ||
}; | ||
} | ||
mailServer.clientPool = simplesmtp.createClientPool(port, host, options); | ||
@@ -354,0 +360,0 @@ |
{ | ||
"name": "maildev", | ||
"description": "SMTP Server and Web Interface for reading and testing emails during development", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "email", |
@@ -96,7 +96,2 @@ # MailDev | ||
## Roadmap | ||
* Forward email to real email address for device/application testing | ||
* Write tests for server and client | ||
## Ideas | ||
@@ -126,2 +121,4 @@ | ||
0.6.1 - Bug fixes and improvements | ||
0.6.0 - Add relay option to send outgoing emails. Refactor for new API. | ||
@@ -145,4 +142,7 @@ | ||
Additionally, thanks to all the awesome [contributors](https://github.com/djfarrelly/MailDev/graphs/contributors) | ||
to the project. | ||
## License | ||
MIT |
1939805
21601