[imp] IMAP uses 100% CPU, when refreshing folders

AJ aj at mindcrash.com
Mon Jun 14 21:02:26 PDT 2004


Chuck,
  Here goes.  What I did was copy revision 1.19 of Tree.php to
framework/IMAP/IMAP/Tree.php.  This causes the error.
I then copied revision 1.18 of Tree.php to
framework/IMAP/IMAP/Tree.php.  This does not cause the error.
I recopied revision 1.19 back to
framework/IMAP/IMAP/Tree.php and changed a few lines.  This did not 
cause the error.  The diff is as follows:

diff -p --unified=3 Tree.php Tree.php.119
--- Tree.php    2004-06-14 23:58:46.763355608 -0400
+++ Tree.php.119        2004-06-14 23:41:42.951998592 -0400
@@ -427,7 +427,11 @@ class IMAP_Tree {
              }
          }
          $elt['l'] = $tmp[$elt['c']];
+        if ($elt['l'] == 'INBOX') {
+            $elt['l'] = _("Inbox");
+        } else {
              $elt['l'] = String::convertCharset($elt['l'], 'UTF7-IMAP');
+        }

          return $elt;
      }


This problem occurs on three separate systems, one using UW-IMAP and two 
using Cyrus.  Does this offer any help?

Thanks.
AJ


Chuck Hagenbuch wrote:
> Quoting AJ <aj at mindcrash.com>:
> 
>> Upon further testing, the changes introduced in revision 1.19
>> of this file seem to be causing the problem.  Can anyone verify this?
> 
> 
> No. And I'd be curious if you could actually find a line of that change 
> that had
> an effect.
> 
> -chuck
> 
> -- 
> "Regard my poor demoralized mule!" - Juan Valdez


More information about the imp mailing list