We can still leave mutt-kz compilable entirely without notmuch, just for the
case there are users out there not interested in notmuch enhancements, but I
seriously doubt that :)
Here's the patch which compiles fine without --enable-notmuch
[kzak@redhat.com: - fix s/Incomming/Incoming/ typo]
Signed-off-by: Karel Zak <kzak@redhat.com>
#endif
/* fastest return if there are no mailboxes */
+#ifdef USE_NOTMUCH
if (!Incoming && !VirtIncoming)
return 0;
+#endif
+ if (!Incoming)
+ return 0;
t = time (NULL);
if (!force && (t - BuffyTime < BuffyTimeout))
return BuffyCount;
buffy_check(tmp, &contex_sb);
#endif
+#ifdef USE_NOTMUCH
for (tmp = VirtIncoming; tmp; tmp = tmp->next)
buffy_check(tmp, &contex_sb);
+#endif
BuffyDoneTime = BuffyTime;
return (BuffyCount);
mutt_curs_set (1); /* fallback from the pager */
}
+#ifdef USE_NOTMUCH
if (Context)
- {
nm_debug_check(Context);
- }
+#endif
switch (op)
{
km_error_key (MENU_MAIN);
}
+#ifdef USE_NOTMUCH
if (Context)
- {
nm_debug_check(Context);
- }
-
+#endif
if (menu->menu == MENU_PAGER)
{
case SB_SRC_NONE:
sidebar_source = SB_SRC_INCOMING;
+#ifdef USE_NOTMUCH
if (option (OPTVIRTSPOOLFILE) && VirtIncoming) {
sidebar_source = SB_SRC_VIRT;
return VirtIncoming;
return VirtIncoming;
}
break;
+#endif
case SB_SRC_INCOMING:
break;
}