1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-11 13:38:02 -05:00

get 100 last messages on sync

This commit is contained in:
Tankred Hase 2013-09-27 17:10:11 +02:00
parent 7b16d6b713
commit 791c318c8f

View File

@ -6,8 +6,8 @@ define(function(require) {
emailDao; emailDao;
var MailListCtrl = function($scope) { var MailListCtrl = function($scope) {
var offset = -6, var offset = 0,
num = 0; num = 100;
// show inbox at the beginning // show inbox at the beginning
$scope.folder = 'INBOX'; $scope.folder = 'INBOX';
@ -44,8 +44,8 @@ define(function(require) {
// sync from imap to local db // sync from imap to local db
syncImapFolder({ syncImapFolder({
folder: $scope.folder, folder: $scope.folder,
offset: offset, offset: -num,
num: num num: offset
}, function() { }, function() {
// list again from local db after syncing // list again from local db after syncing
listLocalMessages({ listLocalMessages({