]> granicus.if.org Git - mutt/commitdiff
Fix sort_aux=received. From <benno@sesgroup.net>.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 30 Jan 2001 10:22:55 +0000 (10:22 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 30 Jan 2001 10:22:55 +0000 (10:22 +0000)
thread.c

index f5ef0a8a81103e0bac3a481dfa1f1e45dbf8c59d..f13f6cd4ee54b8bfdc91186bdc7e8a41f7f3c8e1 100644 (file)
--- a/thread.c
+++ b/thread.c
@@ -317,7 +317,9 @@ static HEADER *find_subject (CONTEXT *ctx, HEADER *cur)
          !tmp->fake_thread &&          /* don't match pseudo threads */
          tmp->subject_changed &&       /* only match interesting replies */
          !is_descendant (tmp, cur) &&  /* don't match in the same thread */
-         cur->date_sent >= tmp->date_sent &&
+         ( ( (SORT_MASK & SortAux) == SORT_RECEIVED) ?
+               cur->received >= tmp->received :
+               cur->date_sent >= tmp->date_sent) &&
          (!last || (last->date_sent <= tmp->date_sent)) &&
          tmp->env->real_subj &&
          mutt_strcmp (env->real_subj, tmp->env->real_subj) == 0)