summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-18 10:14:16 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-18 10:14:16 +0000
commitc18b7b920d1fbf96ca7f4d473e71a5622fbf40a8 (patch)
tree3fd892ec2a3a70da22d4faa24e309b870c9e3e90 /roundcubemail/program/steps
parent2f0381af79c0f108d3d79b3e1c8c4e0684ca5c69 (diff)
#1484805: fix next/last page buttons when new message is added to the list + remove last message
git-svn-id: https://svn.roundcube.net/trunk@1819 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/check_recent.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/check_recent.inc b/roundcubemail/program/steps/mail/check_recent.inc
index dee8ca61b..e84d7ba9e 100644
--- a/roundcubemail/program/steps/mail/check_recent.inc
+++ b/roundcubemail/program/steps/mail/check_recent.inc
@@ -35,6 +35,8 @@ foreach ($a_mailboxes as $mbox_name)
$unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE);
$OUTPUT->set_env('messagecount', $IMAP->messagecount());
+ $OUTPUT->set_env('pagesize', $IMAP->page_size);
+ $OUTPUT->set_env('pagecount', ceil($IMAP->messagecount()/$IMAP->page_size));
$OUTPUT->command('set_unread_count', $mbox_name, $unread_count, ($mbox_name == 'INBOX'));
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text());
$OUTPUT->command('set_quota', rcmail_quota_content($IMAP->get_quota()));