summaryrefslogtreecommitdiffstats
path: root/mx.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-08-27 23:45:40 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-08-27 23:45:40 +0000
commita56c4be859b9138d8f7044aaf5c72bbb7ad821cc (patch)
treeed65f47425bdb620b7ce52c0684a64012805038e /mx.c
parent31beda39930d293e1331505d138ad5fae7bdbc4f (diff)
[patch-0.94.4.vikas.collapse.2] Vikas' collapse-thread
patch.
Diffstat (limited to 'mx.c')
-rw-r--r--mx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mx.c b/mx.c
index ce611617..3e05a4f1 100644
--- a/mx.c
+++ b/mx.c
@@ -540,6 +540,7 @@ CONTEXT *mx_open_mailbox (const char *path, int flags, CONTEXT *pctx)
ctx->path = safe_strdup (path);
ctx->msgnotreadyet = -1;
+ ctx->collapsed = 0;
if (flags & M_QUIET)
ctx->quiet = 1;
@@ -956,7 +957,9 @@ int mx_sync_mailbox (CONTEXT *ctx)
#undef this_body
ctx->msgcount = j;
+ set_option (OPTSORTCOLLAPSE);
mutt_sort_headers (ctx, 1); /* rethread from scratch */
+ unset_option (OPTSORTCOLLAPSE);
}
return (rc);