Changeset 2960 in subversion for trunk/roundcubemail/program/steps/mail/func.inc
- Timestamp:
- Sep 17, 2009 8:36:32 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/func.inc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/func.inc
r2944 r2960 490 490 491 491 492 /**493 *494 */495 492 function rcmail_messagecount_display($attrib) 496 493 { … … 506 503 507 504 508 /**509 *510 */511 505 function rcmail_quota_display($attrib) 512 506 { … … 525 519 526 520 527 /**528 *529 */530 521 function rcmail_quota_content($quota=NULL, $attrib=NULL) 531 522 { … … 580 571 581 572 582 /**583 *584 */585 573 function rcmail_get_messagecount_text($count=NULL, $page=NULL) 586 574 { … … 611 599 } 612 600 613 /** 614 * 615 */ 601 616 602 function rcmail_mailbox_name_display($attrib) 617 603 { 618 global $RCMAIL;619 620 if (!$attrib['id'])621 $attrib['id'] = 'rcmmailboxname';622 623 $RCMAIL->output->add_gui_object('mailboxname', $attrib['id']);624 625 return html::span($attrib, rcmail_get_mailbox_name_text());604 global $RCMAIL; 605 606 if (!$attrib['id']) 607 $attrib['id'] = 'rcmmailboxname'; 608 609 $RCMAIL->output->add_gui_object('mailboxname', $attrib['id']); 610 611 return html::span($attrib, rcmail_get_mailbox_name_text()); 626 612 } 627 613 628 614 function rcmail_get_mailbox_name_text() 629 615 { 630 global $RCMAIL; 631 return rcmail_localize_foldername($RCMAIL->imap->get_mailbox_name()); 632 } 616 global $RCMAIL; 617 return rcmail_localize_foldername($RCMAIL->imap->get_mailbox_name()); 618 } 619 620 621 function rcmail_send_unread_count($mbox_name, $force=false) 622 { 623 global $RCMAIL; 624 625 $old_unseen = $_SESSION['unseen_count'][$mbox_name]; 626 $unseen = $RCMAIL->imap->messagecount($mbox_name, 'UNSEEN', $force); 627 628 if ($unseen != $old_unseen) 629 $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); 630 631 // @TODO: this data is doubled (session and cache tables) if caching is enabled 632 $_SESSION['unseen_count'][$mbox_name] = $unseen; 633 634 return $unseen; 635 } 636 633 637 634 638 /**
Note: See TracChangeset
for help on using the changeset viewer.
