[imp] IMAP \Recent flag disappearing
Szépe Viktor
viktor at szepe.net
Sun Mar 7 14:49:58 UTC 2010
SUCCESS :)
ingo eats the \Recent IMAP flag as well as the newmail popup
switching off ingo options resolves this issue
"Should I issue a bug?"
http://bugs.horde.org/ticket/8903 :)
---------------------------------------
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];
}
More information about the imp
mailing list