On Wed, Jun 11, 2008 at 09:32:51AM +0200, Thomas Bruederli wrote:
This will probably bloat the database like hell. Consider thousands of users having thousands of messages with attachments. If the size of the database grows, it takes even longer to load data because of a higher seeking time. Also opening a single message is less expensive than listing hundred of headers. This is why we just cache headers.
Would it help if you only request the 20-some headers that are to be displayed? If the IMAP server does the sorting, RoundCube doesn't need to know about all of the messages in a folder.