summaryrefslogtreecommitdiffstats
path: root/mbox.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 /mbox.c
parent31beda39930d293e1331505d138ad5fae7bdbc4f (diff)
[patch-0.94.4.vikas.collapse.2] Vikas' collapse-thread
patch.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbox.c b/mbox.c
index edae95fd..d5ef5f56 100644
--- a/mbox.c
+++ b/mbox.c
@@ -649,7 +649,9 @@ int mbox_sync_mailbox (CONTEXT *ctx)
{
save_sort = Sort;
Sort = SORT_ORDER;
+ set_option (OPTSORTCOLLAPSE);
mutt_sort_headers (ctx, 0);
+ unset_option (OPTSORTCOLLAPSE);
}
/* need to open the file for writing in such a way that it does not truncate
@@ -890,7 +892,9 @@ bail: /* Come here in case of disaster */
Sort = save_sort;
/* if the mailbox was reopened, the thread tree will be invalid so make
* sure to start threading from scratch. */
+ set_option (OPTSORTCOLLAPSE);
mutt_sort_headers (ctx, (need_sort == M_REOPENED));
+ unset_option (OPTSORTCOLLAPSE);
}
return (-1);