Roundcube Community Forum

Release Support => Pending Issues => Topic started by: twisterbr on March 21, 2011, 11:06:43 AM

Title: Sort by sender's display name, not by its address
Post by: twisterbr on March 21, 2011, 11:06:43 AM
I reported on
#1487828 (Sort by sender's display, and not by address) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1487828)
And learned that this funcionality works only if the SORT=DISPLAY capabitlity of the IMAP service is set.

But my problem is that I use courier-imap, which doesn't have this capability implemented. I already checked this  with its programmers, and they still don't have this present on their 'to do list'.

So I'm here to ask if there's any other way to make this visualization possible... do we have something that could work this around? :)
Title: Sort by sender's display name, not by its address
Post by: alec on March 21, 2011, 01:48:41 PM
It would be possible to make this in PHP, but it will be very slow, because will require to fetch header of all messages in a folder and to decode it before sorting. You could also check enable_caching=true (personally, I don't like this option), it should work then.
Title: Sort by sender's display name, not by its address
Post by: twisterbr on March 21, 2011, 03:52:10 PM
Quote from: alec;33803It would be possible to make this in PHP, but it will be very slow, because will require to fetch header of all messages in a folder and to decode it before sorting. You could also check enable_caching=true (personally, I don't like this option), it should work then.

Thank you for your suggestions alec!

I guess the first option could solve the problem.. but I don't dominate php+imap very much to know how should I fetch the messages from the users mailboxes.. I mean, they come from the imap protocol right? So I think it doesn't work easily like it does when using php+mysql, with mysql_fetch_array for example....

And about the caching, I agree with you, I don't like it either... not sure why, but I don't like it :D