summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-07-24 18:23:25 -0700
committerKevin McCarthy <kevin@8t8.us>2018-07-24 18:23:25 -0700
commit7b99841610124b2985b4828104f4dd303b5851b9 (patch)
treef6018a413ae0d828458fb4d18034160a9b345727 /mbox.c
parent1147aed6ac9b34bdcd1f464493bbbd06a47fce5e (diff)
Skip sort in mbox_sync_mailbox() when new/reopen occurs.
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().
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mbox.c b/mbox.c
index 8ed1d169..265398ae 100644
--- a/mbox.c
+++ b/mbox.c
@@ -880,7 +880,6 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint)
if ((i = mbox_check_mailbox (ctx, index_hint)) == MUTT_NEW_MAIL || i == MUTT_REOPENED)
{
/* new mail arrived, or mailbox reopened */
- need_sort = i;
rc = i;
goto bail;
}