diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-11-07 10:21:44 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-11-07 10:21:44 +0000 |
commit | 6b7e1f6fd8c92fcd992600b044af8329f1f8a31a (patch) | |
tree | a6b8b14699b90457f1346225ce6dbb3de3bc6f26 /thread.c | |
parent | e0819e53fb06dc19154850830bac9cb2797cdcbe (diff) |
patch-1.3.23.1-de-new_threads.2-3
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -644,8 +644,10 @@ void mutt_sort_threads (CONTEXT *ctx, int init) if (!cur->thread) { - thread = new = (cur->env->message_id - ? hash_find (ctx->thread_hash, cur->env->message_id) : NULL); + thread = (((!init || option (OPTDUPTHREADS)) && cur->env->message_id) + ? hash_find (ctx->thread_hash, cur->env->message_id) : NULL); + + new = (option (OPTDUPTHREADS) ? thread : NULL); if (thread && !thread->message) { @@ -654,7 +656,7 @@ void mutt_sort_threads (CONTEXT *ctx, int init) cur->thread = thread; thread->check_subject = 1; - /* mark descendants as needing subeject_changed checked */ + /* mark descendants as needing subject_changed checked */ for (tmp = (thread->child ? thread->child : thread); tmp != thread; ) { while (!tmp->message) |