** the rest of sort_aux as an ordering. For instance, set sort_aux=last-
** date-received would mean that if a new message is received in a
** thread, that thread becomes the last one displayed (or the first, if
- ** you have set sort=reverse-threads.)
+ ** you have set sort=reverse-threads.) Note: For reversed ``$$sort''
+ ** order $$sort_aux is reversed again (which is not the right thing to do,
+ ** but kept to not break any existing configuration setting).
*/
{ "sort_browser", DT_SORT|DT_SORT_BROWSER, R_NONE, UL &BrowserSort, SORT_SUBJECT },
/*
unsigned int dontwrite : 1; /* dont write the mailbox on close */
unsigned int append : 1; /* mailbox is opened in append mode */
unsigned int quiet : 1; /* inhibit status messages? */
- unsigned int revsort : 1; /* mailbox sorted in reverse? */
unsigned int collapsed : 1; /* are all threads collapsed? */
unsigned int closing : 1; /* mailbox is being closed */
} CONTEXT;
subthreads need to be resorted */
if (option (OPTSORTSUBTHREADS))
{
+ i = Sort;
+ Sort = SortAux;
ctx->tree = mutt_sort_subthreads (ctx->tree, mutt_get_sort_func (SortAux));
+ Sort = i;
unset_option (OPTSORTSUBTHREADS);
}
mutt_sort_threads (ctx, init);
else
qsort ((void *) ctx->hdrs, ctx->msgcount, sizeof (HEADER *), sortfunc);
- /* the threading function find_reference() needs to know how the mailbox
- * is currently sorted in memory in order to speed things up a bit
- */
- ctx->revsort = (Sort & SORT_REVERSE) ? 1 : 0;
-
/* adjust the virtual message numbers */
ctx->vcount = 0;
for (i = 0; i < ctx->msgcount; i++)