1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04: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;
var MailListCtrl = function($scope) {
var offset = -6,
num = 0;
var offset = 0,
num = 100;
// show inbox at the beginning
$scope.folder = 'INBOX';
@ -44,8 +44,8 @@ define(function(require) {
// sync from imap to local db
syncImapFolder({
folder: $scope.folder,
offset: offset,
num: num
offset: -num,
num: offset
}, function() {
// list again from local db after syncing
listLocalMessages({