Robin Bowes
Mon, 04 Aug 2003 13:31:34 -0700
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Andreas Aardal Hanssen > Sent: 04 August 2003 07:34 > To: Binc IMAP > Subject: RE: [bincimap] Squirrelmail + bincimap = Slllooooowww!! > > > On Mon, 4 Aug 2003, Andreas Aardal Hanssen wrote: > >On Sun, 3 Aug 2003, Robin Bowes wrote: > >>I'm using the latest version of squirrelmail - 1.5.0, checked > out from CVS. > >>My web and mail are on the same server - Celeron 333MHz with > 256MB RAM. The > >>server is generally pretty quite as it only hosts > robinbowes.com and handles > >>my mail (I have only three users!) > >>Can you let me have your squirrelmail config settings? > >I ran ./configure, then set the server port and switched on TLS. That's > >all I changed. I got three free mailboxes when I logged in, because I > >forgot to change the host settings. > > This was meant to say "the folder settings", I got INBOX.Trash and so on. Andy, I did some testing with recordio (I figured out how to use it!). I moved all my squirrelmail preference settings out of the way, and all the bincimap files our of my Maildir, i.e. started clean with no folders subscribed. I found I could log in OK. I then subscribed to all my folders, logged out and logged back in again. The resulting log file (using recordio, remember) contains one of these for every folder I am subscribed to: 2003-08-04 20:47:57.746207500 7156 < A033 LIST "" "INBOX/Lists/getmail"^M 2003-08-04 20:47:57.917262500 7156 > * LIST (\UnMarked \Noinferiors) "/" "INBOX/ Lists/getmail"^M 2003-08-04 20:47:57.917277500 7156 > A033 OK LIST completed^M 2003-08-04 20:47:57.919460500 7156 < A034 LIST "" "INBOX/Lists/iproute"^M 2003-08-04 20:47:58.090411500 7156 > * LIST (\UnMarked \Noinferiors) "/" "INBOX/ Lists/iproute"^M 2003-08-04 20:47:58.090426500 7156 > A034 OK LIST completed^M 2003-08-04 20:47:58.092775500 7156 < A035 LIST "" "INBOX/Lists/lists-bincimap"^M 2003-08-04 20:47:58.278785500 7156 > * LIST (\UnMarked \Noinferiors) "/" "INBOX/ Lists/lists-bincimap"^M 2003-08-04 20:47:58.278801500 7156 > A035 OK LIST completed^M 2003-08-04 20:47:58.280990500 7156 < A036 LIST "" "INBOX/Lists/log"^M 2003-08-04 20:47:58.441456500 7156 > * LIST (\UnMarked \Noinferiors) "/" "INBOX/ Lists/log"^M 2003-08-04 20:47:58.441471500 7156 > A036 OK LIST completed^M Digging in the squirrelmail code, the file imap_mailbox.php contains the following code starting at line 572: /* * The LSUB response doesn't provide us information about \Noselect * mail boxes. The LIST response does, that's why we need to do a LIST * call to retrieve the flags for the mailbox * Note: according RFC2060 an imap server may provide \NoSelect flags in the LSUB response. * in other words, we cannot rely on it. */ $sorted_list_ary = array(); for ($i=0; $i < count($sorted_lsub_ary); $i++) { if (substr($sorted_lsub_ary[$i], -1) == $delimiter) { $mbx = substr($sorted_lsub_ary[$i], 0, strlen($sorted_ls ub_ary[$i])-1); } else { $mbx = $sorted_lsub_ary[$i]; } $mbx = stripslashes($mbx); $read = sqimap_run_command ($imap_stream, 'LIST "" ' . sqimap_encode_mailbox_name($mbx), true, $response, $message); So, squirrelmail is doing a "LIST" for every folder I'm subscribed to. That's 198 folders! Next step is to find why it's doing this with bincimpa but worked OK with courier-imap. Any ideas? R. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.506 / Virus Database: 303 - Release Date: 01/08/2003