1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04:00

change name of to emptyOutbox

This commit is contained in:
Tankred Hase 2013-10-24 19:37:07 +02:00
parent 4ad8ccbc45
commit a20f08aa7a
2 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ define(function(require) {
}
};
$scope.sendFirstFromOutbox = function() {
$scope.emptyOutbox = function() {
var dbType = 'email_OUTBOX',
outbox = _.findWhere($scope.folders, {
type: 'Outbox'
@ -130,7 +130,7 @@ define(function(require) {
outboxBusy = false;
return;
}
var email = emails.shift();
emailDao.smtpSend(email, function(err) {
if (err) {
@ -227,7 +227,7 @@ define(function(require) {
function startOutboxSender() {
// start periodic checking of outbox
senderIntervalId = setInterval($scope.sendFirstFromOutbox, config.checkOutboxInterval);
senderIntervalId = setInterval($scope.emptyOutbox, config.checkOutboxInterval);
}
};

View File

@ -117,7 +117,7 @@ define(function(require) {
var ps = $scope.$parent.$parent;
ps.closeWriter();
ps.$apply();
ps.sendFirstFromOutbox();
ps.emptyOutbox();
});
};
};