]> granicus.if.org Git - neomutt/commitdiff
Resort the incoming folder from mh_sync_mailbox() also when new mail
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 26 Sep 1998 10:06:10 +0000 (10:06 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 26 Sep 1998 10:06:10 +0000 (10:06 +0000)
arrived.

mh.c

diff --git a/mh.c b/mh.c
index 4503ecd229249f3cc78f21dfac073d3aa34692db..c19173415e2451dd9a210d31edb30f656b77ee27 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -508,10 +508,10 @@ int mh_sync_mailbox (CONTEXT * ctx)
   int i, rc = 0;
   
   i = mh_check_mailbox(ctx, NULL);
-  if(i == M_REOPENED)
+  if(i == M_REOPENED || i == M_NEW_MAIL)
   {
     set_option(OPTSORTCOLLAPSE);
-    mutt_sort_headers(ctx, 1);
+    mutt_sort_headers(ctx, (i == M_REOPENED));
     unset_option(OPTSORTCOLLAPSE);
   }