[imp] refreash pages

Allan Wagers awagers@joycedayton.com
Tue, 2 Jul 2002 15:58:16 -0400


Hello I'm trying to modify the mailbox page to change the page title when new 
mail arrives. problem is im not a programmer is the follow code the correct 
place for me to start?

ripped from mailbox.php

$newmsgs = 0;
if ($imp['mailbox'] == '**search') {
    $imp['msgl'] = runSearch($sorted);
    $imp['msgcount'] = count($sorted);
} else {
    if ($prefs->getValue('delhide')) {
        $msgs = imap_search($imp['stream'], 'UNDELETED');
        $imp['msgcount'] = ($msgs !== false) ? count($msgs) : 0;
        if ($prefs->getValue('nav_popup') && Horde::getFormData
('newmail_popup') != 'no') {
            $new = imap_search($imp['stream'], 'RECENT UNDELETED');
            $newmsgs = $new ? count($new) : 0;
        }
    } else {
        $check = imap_check($imp['stream']);
        $imp['msgcount'] = (is_object($check) && isset($check->Nmsgs)) ? 
$check->Nmsgs : 0;
        if ($prefs->getValue('nav_popup') && Horde::getFormData
('newmail_popup') != 'no') {
            $new = imap_search($imp['stream'], 'RECENT');
            $newmsgs = $new ? count($new) : 0;
        }
    }


Floyd A. Wagers CCNA
Joyce / Dayton Corp.
Network/PC Manager