]> granicus.if.org Git - neomutt/commitdiff
fix a bug with processing mailboxes when they are all virtual.
authorLuke Macken <lmacken@redhat.com>
Tue, 10 Apr 2012 15:25:31 +0000 (11:25 -0400)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 15:30:05 +0000 (16:30 +0100)
This bug occurs when there are only virtual mailboxes defined. Prior to this
change, the sidebar descriptions of the virtual mailboxes would be displayed as
the notmuch query itself, as opposed to the user-defined description.

buffy.c

diff --git a/buffy.c b/buffy.c
index 08a7b087934503f41ad40a08d931658a378c6ee1..1e8742d586ff106d31101f96f233026b326d9df0 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -703,9 +703,10 @@ int mutt_buffy_check (int force)
 #ifdef USE_NOTMUCH
   if (!Incoming && !VirtIncoming)
     return 0;
-#endif
+#else
   if (!Incoming)
     return 0;
+#endif
   t = time (NULL);
   if (!force && (t - BuffyTime < BuffyTimeout))
     return BuffyCount;