Signed-off-by: Karel Zak <kzak@redhat.com>
#include "pop.h"
#endif
+#ifdef USE_NOTMUCH
+#include "mutt_notmuch.h"
+#endif
+
#include "buffy.h"
#ifdef USE_DOTLOCK
}
#endif
+#ifdef USE_NOTMUCH
+
+int mx_is_notmuch(const char *p)
+{
+ url_scheme_t scheme;
+
+ if (!p)
+ return 0;
+
+ scheme = url_check_scheme (p);
+ if (scheme == U_NOTMUCH)
+ return 1;
+
+ return 0;
+}
+
+#endif
+
int mx_get_magic (const char *path)
{
struct stat st;
M_MH,
M_MAILDIR,
M_IMAP,
+ M_NOTMUCH,
M_POP
};
int mh_sync_mailbox_message (CONTEXT * ctx, int msgno);
#endif
+#ifdef USE_NOTMUCH
+int mx_is_notmuch(const char *p);
+#endif
+
int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *);