From: Pietro Cerutti Date: Mon, 22 Jul 2019 11:37:23 +0000 (+0000) Subject: Fix browsing an IMAP backend X-Git-Tag: 2019-10-25~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0b6cdfdd8636435a100127ee9197e701875b975;p=neomutt Fix browsing an IMAP backend Fixes #1783 --- diff --git a/imap/browse.c b/imap/browse.c index d9661aca6..edf0efa16 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -121,7 +121,6 @@ static void add_folder(char delim, char *folder, bool noselect, bool noinferiors if (mutt_str_strcmp(tmp, mutt_b2s(np->mailbox->pathbuf)) == 0) break; } - neomutt_mailboxlist_clear(&ml); if (np) { @@ -130,6 +129,7 @@ static void add_folder(char delim, char *folder, bool noselect, bool noinferiors (state->entry)[state->entrylen].msg_count = np->mailbox->msg_count; (state->entry)[state->entrylen].msg_unread = np->mailbox->msg_unread; } + neomutt_mailboxlist_clear(&ml); (state->entrylen)++; }