I'm looking into using the imap_mailboxmsginfo in my application on every folder in the users account and it seems that I have to open an IMAP connection for each folder I'm checking. If the user has 100 folders in his account this would mean that I have to open (and close) 100 connections just to get the information about the folders. Some email providers don't like this behaviour. Is there anyway I can make the PHP IMAP package use the IMAP SELECT command which would just select a different folder while preserving the connection?
Many thanks.