return rc;
}
-/**
- * nm_description_to_path - Find a path from a folder's description
- * @param desc Description
- * @param buf Buffer for path
- * @param buflen Length of buffer
- * @retval 0 Success
- * @retval <0 Failure
- */
-int nm_description_to_path(const char *desc, char *buf, size_t buflen)
-{
- if (!desc || !buf || (buflen == 0))
- return -EINVAL;
-
- struct MailboxNode *np = NULL;
- STAILQ_FOREACH(np, &AllMailboxes, entries)
- {
- if ((np->mailbox->magic == MUTT_NOTMUCH) && np->mailbox->desc &&
- (strcmp(desc, np->mailbox->desc) == 0))
- {
- mutt_str_strfcpy(buf, mutt_b2s(np->mailbox->pathbuf), buflen);
- buf[buflen - 1] = '\0';
- return 0;
- }
- }
-
- return -1;
-}
-
/**
* nm_record_message - Add a message to the Notmuch database
* @param m Mailbox
extern struct MxOps MxNotmuchOps;
-void nm_db_debug_check (struct Mailbox *m);
-int nm_description_to_path (const char *desc, char *buf, size_t buflen);
-int nm_get_all_tags (struct Mailbox *m, char **tag_list, int *tag_count);
+void nm_db_debug_check (struct Mailbox *m);
+void nm_db_longrun_done (struct Mailbox *m);
+void nm_db_longrun_init (struct Mailbox *m, bool writable);
char *nm_email_get_folder (struct Email *e);
-void nm_db_longrun_done (struct Mailbox *m);
-void nm_db_longrun_init (struct Mailbox *m, bool writable);
+int nm_get_all_tags (struct Mailbox *m, char **tag_list, int *tag_count);
bool nm_message_is_still_queried(struct Mailbox *m, struct Email *e);
void nm_parse_type_from_query (struct NmMboxData *mdata, char *buf);
int nm_path_probe (const char *path, const struct stat *st);