From: Thomas Roessler Date: Sat, 26 Sep 1998 10:06:10 +0000 (+0000) Subject: Resort the incoming folder from mh_sync_mailbox() also when new mail X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7bff5ed2b035f72becefac53a96635d20751e6d;p=neomutt Resort the incoming folder from mh_sync_mailbox() also when new mail arrived. --- diff --git a/mh.c b/mh.c index 4503ecd22..c19173415 100644 --- 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); }