# HG changeset patch # User Charlie Root # Date 1516279624 18000 # Node ID 1ab920879b881c7381b18ea9ff6f8390f32698a6 # Parent bb8aca0e35ee415f8ba8c33334144d2375711f99 do date sort if sorting on dates, to get sub-threads in date order. See also thunderbird-labels.php:407 et seq. diff -r bb8aca0e35ee -r 1ab920879b88 program/steps/mail/list.inc --- a/program/steps/mail/list.inc Wed Jan 17 09:17:04 2018 -0500 +++ b/program/steps/mail/list.inc Thu Jan 18 07:47:04 2018 -0500 @@ -68,7 +68,7 @@ // fetch message headers if ($count = $RCMAIL->storage->count($mbox_name, $threading ? 'THREADS' : 'ALL', !empty($_REQUEST['_refresh']))) { $sort_col = rcmail_sort_column(); - $a_headers = $RCMAIL->storage->list_messages($mbox_name, NULL,($sort_col == 'dates')? NULL : $sort_col , rcmail_sort_order()); + $a_headers = $RCMAIL->storage->list_messages($mbox_name, NULL,($sort_col == 'dates')? 'date' : $sort_col , rcmail_sort_order()); } #rcube::write_log('mail',"list fetch: $count ".count($a_headers)); // update search set (possible change of threading mode)