diff options
author | alecpl <alec@alec.pl> | 2008-09-18 10:14:16 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-09-18 10:14:16 +0000 |
commit | 095d05ef00674553be1d8ee693cfee26fc544510 (patch) | |
tree | d8139cd553931c3d5575a090a1957e68b37b757d /program/steps/mail | |
parent | 9281884ff0c2e15118e559d666c243512208ebfd (diff) |
#1484805: fix next/last page buttons when new message is added to the list + remove last message
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/check_recent.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index dee8ca61b..e84d7ba9e 100644 --- a/program/steps/mail/check_recent.inc +++ b/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())); |