Author Topic: Sort By Subject, Sender, or Size  (Read 32970 times)

Offline Emp

  • Newbie
  • *
  • Posts: 0
Sort By Subject, Sender, or Size
« 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

Offline trolley

  • Jr. Member
  • **
  • Posts: 19
Re: Sort By Subject, Sender, or Size
« Reply #1 on: June 29, 2006, 11:23:54 AM »
You can change how they are sorted in the main.inc.php file:

Code: [Select]
// 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.

Offline flosoft

  • Sr. Member
  • ****
  • Posts: 349
    • http://flosoft.biz
Re: Sort By Subject, Sender, or Size
« Reply #2 on: June 29, 2006, 11:25:53 AM »
Well, in the SVN release, you are able to manually sort by subject, name ....

Offline syc

  • Jr. Member
  • **
  • Posts: 14
Re: Sort By Subject, Sender, or Size
« Reply #3 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.

Offline kali

  • Jr. Member
  • **
  • Posts: 57
Re: Sort By Subject, Sender, or Size
« Reply #4 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.