Roundcube Community Forum

Release Support => Older Versions => 0.1 Beta 1 => Topic started by: Emp on June 29, 2006, 02:32:53 AM

Title: Sort By Subject, Sender, or Size
Post by: Emp on June 29, 2006, 02:32:53 AM
Hi there,

I am trying out Roundcube, and would like to give a "thumbs up" to the developers.

One thing I noted is that the webmail is only able to sort emails by the date/time. I would appreciate if the developers could also allow the emails to be sorted by the "Sender Name", "Subject" and the "Size" of the emails.

If there is a way that it can be done through the codes, please do let me know as well.

Thank you

Regards,

Emp
Title: Re: Sort By Subject, Sender, or Size
Post by: trolley on June 29, 2006, 11:23:54 AM
You can change how they are sorted in the main.inc.php file:

// default sort col
$rcmail_config['message_sort_col'] = 'date';

I believe this is installation-wide though, and not individual user configureable. I agree that it would be nice to be able to click the column header to sort.
Title: Re: Sort By Subject, Sender, or Size
Post by: flosoft on June 29, 2006, 11:25:53 AM
Well, in the SVN release, you are able to manually sort by subject, name ....
Title: Re: Sort By Subject, Sender, or Size
Post by: syc on November 27, 2006, 01:39:49 PM
Quote from: flosoft Well, in the SVN release, you are able to manually sort by subject, name ....

I checked this in func.inc in the program/steps/mail folder and found that $IMAP->get_capability('sort') was failing.

I simply commented this call out and sorting now working.

I'll be looking at get_capability() to see what the problem is.
Title: Re: Sort By Subject, Sender, or Size
Post by: kali on November 27, 2006, 04:30:31 PM
Quote from: syc
Quote from: flosoft Well, in the SVN release, you are able to manually sort by subject, name ....

I checked this in func.inc in the program/steps/mail folder and found that $IMAP->get_capability('sort') was failing.

I simply commented this call out and sorting now working.

I'll be looking at get_capability() to see what the problem is.


Does your IMAP server have the "SORT" capability? Is that the failure - or is it that the get_capability() is not picking up the response correctly? The SORT function (server side sorting) is very powerful and really speeds things up tremendously - but not all IMAP servers support it properly.