From: Austin Ray Date: Mon, 12 Aug 2019 21:42:47 +0000 (-0400) Subject: notmuch: sort headers on interrupted read X-Git-Tag: 2019-10-25~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2c26d1e761f607c2c45e63a9a1e9db00a982579;p=neomutt notmuch: sort headers on interrupted read Commit 45639e4 breaks partial notmuch mailbox loads. If a notmuch mailbox is interrupted while loading, the index will be empty. To resolve this, add back the 'mutt_sort_headers()' for the interrupted read case. --- diff --git a/mx.c b/mx.c index 39727e497..f251378ac 100644 --- a/mx.c +++ b/mx.c @@ -368,7 +368,10 @@ struct Context *mx_mbox_open(struct Mailbox *m, OpenMailboxFlags flags) if (!m->quiet) mutt_clear_error(); if (rc == -2) + { mutt_error(_("Reading from %s interrupted..."), mutt_b2s(m->pathbuf)); + mutt_sort_headers(ctx, true); + } } else {