Hello!

I've inserted a debug command into imp/lib/IMAP/Cache.php. This is the only function where imap_status is called. (am I right?) The count of unseen messages increases (in a folder refresh) while the count of recent remains zero. But! sometimes (cannot detect the reason) recent count reaches goes 1 and *NO* new mail popup is fired.

Please help me to debug and/or solve this.

Thank you very much!
God Bless you!

Viktor


    function getStatus($imap, $mailbox)
    {
        $mailbox = IMP::serverString($mailbox);
        if (!isset($this->_statuscache[$mailbox]) &&
!$GLOBALS['imp_search']->isSearchMbox(substr($mailbox, strpos($mailbox, '}') + 1))) {
            $imp_imap = &IMP_IMAP::singleton();
$this->_statuscache[$mailbox] = @imap_status($imp_imap->stream(), $mailbox, SA_ALL); Horde::logMessage('getSt: REREQUEST recent=' . $this->_statuscache[$mailbox]->recent . ' unseen='.$this->_statuscache[$mailbox]->unseen, __FILE
            if (!$this->_statuscache[$mailbox]) {
                unset($this->_statuscache[$mailbox]);
                if ($err = imap_last_error()) {
Horde::logMessage($err, __FILE__, __LINE__, PEAR_LOG_NOTICE);
                }
            }
        }

return empty($this->_statuscache[$mailbox]) ? '' : $this->_statuscache[$mailbox];
    }


--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]

Reply via email to