RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > SVN Releases > SVN Discussion

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 12-08-2006, 07:34 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Forcing IMAP sorting on INTERNALDATE ?


I run a IMAP server which uses a maildir-like message store. In playing around with RC, I noticed that for large folders it took a long time to get a header list and sometimes the server even timed out the request. Investigation indicates that, by default, RC does server sorting by DATE.

DATE means the value of the Date: header in each message. To get this, the IMAP server has to open each message (ergo, file), read it, get the Date: header, and so on for each message in the folder. That's a open/read/close, for each message.

It would be way more efficient to sort on INTERNALDATE instead. This means that all the IMAP server needs to do is stat() each message file. The UID is part of the file's name, and the delivery date is the create time of the file... all which is found through one stat() call to each message file. Obviously, this far faster and I hard coded this into my SVN rev 400 copy of RC, and it's MUCH better.

The question is, is there any way I can configure RC to do INTERNALDATE instead of DATE sorting via main.inc.php ?

TIA
/dale
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 12-08-2006, 10:44 PM
Registered User
 
Join Date: Oct 2006
Posts: 198
Downloads: 0
Uploads: 0
Default Re: Forcing IMAP sorting on INTERNALDATE ?

How did you do this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 12-12-2006, 09:23 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Re: Forcing IMAP sorting on INTERNALDATE ?

I edited imap.inc to issue always issue INTERNALDATE as the SORT command argument.

This is not the right or preferable way to do it, though. I did it mainly just to see the effect it had on page display speed.

/dale
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 12:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community