|
|
@ -6923,6 +6923,16 @@ function rcube_webmail()
|
|
|
|
|
|
|
|
|
|
|
|
case 'refresh':
|
|
|
|
case 'refresh':
|
|
|
|
case 'check-recent':
|
|
|
|
case 'check-recent':
|
|
|
|
|
|
|
|
// update message flags
|
|
|
|
|
|
|
|
$.each(this.env.recent_flags || {}, function(uid, flags) {
|
|
|
|
|
|
|
|
ref.set_message(uid, 'deleted', flags.deleted);
|
|
|
|
|
|
|
|
ref.set_message(uid, 'replied', flags.answered);
|
|
|
|
|
|
|
|
ref.set_message(uid, 'unread', !flags.seen);
|
|
|
|
|
|
|
|
ref.set_message(uid, 'forwarded', flags.forwarded);
|
|
|
|
|
|
|
|
ref.set_message(uid, 'flagged', flags.flagged);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
delete this.env.recent_flags;
|
|
|
|
|
|
|
|
|
|
|
|
case 'getunread':
|
|
|
|
case 'getunread':
|
|
|
|
case 'search':
|
|
|
|
case 'search':
|
|
|
|
this.env.qsearch = null;
|
|
|
|
this.env.qsearch = null;
|
|
|
@ -7246,13 +7256,18 @@ function rcube_webmail()
|
|
|
|
|
|
|
|
|
|
|
|
if (this.gui_objects.mailboxlist)
|
|
|
|
if (this.gui_objects.mailboxlist)
|
|
|
|
params._folderlist = 1;
|
|
|
|
params._folderlist = 1;
|
|
|
|
if (this.gui_objects.messagelist)
|
|
|
|
|
|
|
|
params._list = 1;
|
|
|
|
|
|
|
|
if (this.gui_objects.quotadisplay)
|
|
|
|
if (this.gui_objects.quotadisplay)
|
|
|
|
params._quota = 1;
|
|
|
|
params._quota = 1;
|
|
|
|
if (this.env.search_request)
|
|
|
|
if (this.env.search_request)
|
|
|
|
params._search = this.env.search_request;
|
|
|
|
params._search = this.env.search_request;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.gui_objects.messagelist) {
|
|
|
|
|
|
|
|
params._list = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// message uids for flag updates check
|
|
|
|
|
|
|
|
params._uids = $.map(this.message_list.rows, function(row, uid) { return uid; }).join(',');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return params;
|
|
|
|
return params;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|