]> granicus.if.org Git - neomutt/commitdiff
Skip sort in mbox_sync_mailbox() when new/reopen occurs
authorKevin McCarthy <kevin@8t8.us>
Wed, 25 Jul 2018 01:23:25 +0000 (18:23 -0700)
committerRichard Russon <rich@flatcap.org>
Sat, 1 Sep 2018 17:06:08 +0000 (18:06 +0100)
Callers of mx_sync_mailbox() and mx_close_mailbox() already check for
those cases and call update_index().  So remove the need_sort flag
setting when mbox_check_mailbox() returns new/reopen inside
mbox_sync_mailbox().

mbox/mbox.c

index 60e8f91f6eee16d02fd6b4082ee61f357d66aba3..c992565313eacf2f774005976864db38150f80ca 100644 (file)
@@ -1007,7 +1007,6 @@ static int mbox_mbox_sync(struct Context *ctx, int *index_hint)
   if ((i == MUTT_NEW_MAIL) || (i == MUTT_REOPENED))
   {
     /* new mail arrived, or mailbox reopened */
-    need_sort = i;
     rc = i;
     goto bail;
   }