diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-27 23:45:40 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-27 23:45:40 +0000 |
commit | a56c4be859b9138d8f7044aaf5c72bbb7ad821cc (patch) | |
tree | ed65f47425bdb620b7ce52c0684a64012805038e /mbox.c | |
parent | 31beda39930d293e1331505d138ad5fae7bdbc4f (diff) |
[patch-0.94.4.vikas.collapse.2] Vikas' collapse-thread
patch.
Diffstat (limited to 'mbox.c')
-rw-r--r-- | mbox.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |