@if !HAVE_WCSCASECMP
NEOMUTTOBJS+= wcscasecmp.o
@endif
-@if USE_NOTMUCH
-NEOMUTTOBJS+= mutt_notmuch.o
-@endif
@if MIXMASTER
NEOMUTTOBJS+= remailer.o
@endif
MUTTLIBS+= $(LIBMBOX)
ALLOBJS+= $(LIBMBOXOBJS)
+###############################################################################
+# libnotmuch
+@if USE_NOTMUCH
+LIBNOTMUCH= libnotmuch.a
+LIBNOTMUCHOBJS= notmuch/mutt_notmuch.o
+CLEANFILES+= $(LIBNOTMUCH) $(LIBNOTMUCHOBJS)
+MUTTLIBS+= $(LIBNOTMUCH)
+ALLOBJS+= $(LIBNOTMUCHOBJS)
+@endif
+
###############################################################################
# libmutt
LIBMUTT= libmutt.a
$(PWD)/mbox:
$(MKDIR_P) $(PWD)/mbox
+# libnotmuch
+$(LIBNOTMUCH): $(PWD)/notmuch $(LIBNOTMUCHOBJS)
+ $(AR) cr $@ $(LIBNOTMUCHOBJS)
+ $(RANLIB) $@
+$(PWD)/notmuch:
+ $(MKDIR_P) $(PWD)/notmuch
+
# libncrypt
$(LIBNCRYPT): $(PWD)/ncrypt $(LIBNCRYPTOBJS)
$(AR) cr $@ $(LIBNCRYPTOBJS)
#include "nntp/nntp.h"
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
static const struct Mapping FolderHelp[] = {
#include "imap/imap.h"
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
static time_t BuffyTime = 0; /**< last time we started checking for mail */
#include "imap/imap.h"
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
#ifdef ENABLE_NLS
#include <libintl.h>
#include "rfc2047.h"
#include "state.h"
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
static int address_header_decode(char **h);
#include <wctype.h>
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
/* not possible to unget more than one char under some curses libs, and it
#include "imap/imap.h"
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
#ifdef USE_NNTP
#include "nntp/nntp.h"
#include "sidebar.h"
#include "version.h"
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
#ifdef USE_IMAP
#include "imap/imap.h" /* for imap_subscribe() */
#include "protos.h"
#include "sort.h"
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
#ifdef USE_HCACHE
#include "hcache/hcache.h"
#include "nntp/nntp.h"
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
#ifdef ENABLE_NLS
#include <libintl.h>
mutt_header.c
mutt_logging.c
mutt_lua.c
-mutt_notmuch.c
mutt_signal.c
mutt_socket.c
mutt_thread.c
ncrypt/smime.c
nntp/newsrc.c
nntp/nntp.c
+notmuch/mutt_notmuch.c
opcodes.h
pager.c
parse.c
#include "remailer.h"
#endif
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
static void append_signature(FILE *f)
#include "protos.h"
#include "sort.h"
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
/* Previous values for some sidebar config */
#include "protos.h"
#include "sort.h"
#ifdef USE_NOTMUCH
-#include "mutt_notmuch.h"
+#include "notmuch/mutt_notmuch.h"
#endif
/**