[imp] Folders and high CPU

Deryk Piper deryk at mod-soft.com
Mon Mar 29 08:55:55 PST 2004


Hello all,

I've got a very non-standard IMP installation, consisting of the
following:

- webserver is IIS5 on Windows2000
- IMAP server is Inframail (www.infradig.com)

I've got the (apparently-common) problem of having the web server shoot
up to 100% CPU whenever I try to list folders.  The folder drop-down in
the top-right lists all folders correctly, even subfolders, but clicking
the "Folders" icon results in the high CPU usage and an eventual
timeout.

I'm aware of the "folders" and "namespace" options in servers.php.  This
particular IMAP server wouldn't appear to need any special settings for
these parms as it only lists IMAP folders when you ask for a folder
list:

Mon Mar 29 11:53:53 2004 0000000090:0002 00000004 LIST "" *
Mon Mar 29 11:53:53 2004 0000000090:0002 * LIST () "/" "INBOX"
Mon Mar 29 11:53:53 2004 0000000090:0002 * LIST () "/" "INBOX/sub2"
Mon Mar 29 11:53:53 2004 0000000090:0002 * LIST () "/" "sent-mail"
Mon Mar 29 11:53:53 2004 0000000090:0002 * LIST () "/" "trash"
Mon Mar 29 11:53:53 2004 0000000090:0002 00000004 OK LIST completed
Mon Mar 29 11:53:53 2004 0000000090:0002 00000005 LIST "" INBOX
Mon Mar 29 11:53:53 2004 0000000090:0002 * LIST () "/" "INBOX"
Mon Mar 29 11:53:53 2004 0000000090:0002 00000005 OK LIST completed

The above is the conversation that seems to ensue when IMP populates the
folder drop-down.  "folders" and "namespace" are both ''.
When I click the Folders button, I get the following:

Mon Mar 29 11:54:37 2004 0000000091:0002 00000003 LIST "" INBOX
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "INBOX"
00000003 OK LIST [CACHED] completed
Mon Mar 29 11:54:37 2004 0000000091:0002 00000004 LIST "" %
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "INBOX"
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "sent-mail"
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "trash"
Mon Mar 29 11:54:37 2004 0000000091:0002 00000004 OK LIST completed
Mon Mar 29 11:54:37 2004 0000000091:0002 00000005 LIST "" %/%
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "INBOX"
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "INBOX/sub2"
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "sent-mail"
Mon Mar 29 11:54:37 2004 0000000091:0002 * LIST () "/" "trash"
Mon Mar 29 11:54:37 2004 0000000091:0002 00000005 OK LIST completed

PHP goes into a fit and I get timeouts on functions that look like they
manage a linked-list of some sort.  By changing the "folders" parm in
servers.php to "INBOX/", I get a list of all the subfolders in INBOX
repeated indefinitely until PHP times out.

Is the IMAP server responding correctly?  I can work with the author if
not.  Otherwise, what am I missing???

Thanks in advance,

DP


Deryk Piper, B.A.Sc
 Network Manager
 Applications Development
Modular Software Ltd.

Web:    www.mod-soft.com
Email:  deryk at mod-soft.com
Phone:  905.890.3778 x225
FAX:    905.890.3845




More information about the imp mailing list