[dev] imp - large INBOX
Rick Romero
rick at havokmon.com
Mon Mar 14 15:12:17 UTC 2011
A couple times I've seen odd issue with IMP and DIMP Accessing my
INBOX (>650 msgs), and I would get 'Error when communicating with the
server' or 'Unable to generate message list' - and I see an empty INBOX.
In my lighttpd logs I see:
2011-03-14 09:52:03: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Fatal
error: Call to a member function getEnvelope() on a non-object in
/usr/local/www/data/horde_git/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php on line
1947
So I threw an if is_object() before that line, and enclosed the rest
in braces, and it appears to work now. In IMP, I get a message list
and can move around normally - though it's not sorted. In DIMP,
everything seems to be working correctly.
Rick
foreach ($slice as $num) {
if ( is_object($fetch_res[$num]) ){
$env = $fetch_res[$num]->getEnvelope();
if (empty($env->$field)) {
$sorted[$num] = null;
} else {
$tmp = ($display_sort &&
!empty($env->$field[0]['personal']))
? 'personal'
: 'mailbox';
$sorted[$num] = $env->$field[0][$tmp];
}
}
}
More information about the dev
mailing list