Comparing version 0.7.0 to 0.8.0
@@ -24,2 +24,3 @@ /* global angular, app */ | ||
$scope.item = new Email(email); | ||
$scope.rawEmail = 'email/' + $scope.item.id + '/source'; | ||
@@ -26,0 +27,0 @@ if ($scope.item.html) { |
@@ -43,3 +43,3 @@ /* global app */ | ||
$location.path('/email/' + newEmail.id ); | ||
} | ||
} | ||
$scope.$apply(); | ||
@@ -46,0 +46,0 @@ }, 200); |
@@ -17,3 +17,3 @@ | ||
, store = [] | ||
, tempDir = path.join(os.tmpdir(), 'maildev') | ||
, tempDir = path.join(os.tmpdir(), 'maildev', process.pid.toString()) | ||
, eventEmitter = new events.EventEmitter() | ||
@@ -20,0 +20,0 @@ , smtp |
@@ -98,2 +98,13 @@ | ||
// Get email source from .eml file | ||
app.get('/email/:id/source', function(req, res){ | ||
mailserver.getRawEmail( req.params.id, function(err, readStream){ | ||
if (err) return res.status(404).json('File not found'); | ||
readStream.pipe(res); | ||
}); | ||
}); | ||
// Get any config settings for display | ||
@@ -100,0 +111,0 @@ app.get('/config', function(req, res){ |
{ | ||
"name": "maildev", | ||
"description": "SMTP Server and Web Interface for reading and testing emails during development", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "email", |
@@ -130,2 +130,4 @@ # MailDev | ||
0.8.0 - Add view email source. Fix running multiple instances. | ||
0.7.0 - Add Docker support | ||
@@ -132,0 +134,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1942342
21650
164