42#ifndef MUTT_NOTMUCH_LIB_H
43#define MUTT_NOTMUCH_LIB_H
Convenience wrapper for the core headers.
MailboxType
Supported mailbox formats.
const struct MxOps MxNotmuchOps
Notmuch Mailbox - Implements MxOps -.
enum MailboxType nm_path_probe(const char *path, const struct stat *st)
Is this a Notmuch Mailbox? - Implements MxOps::path_probe() -.
int nm_update_filename(struct Mailbox *m, const char *old_file, const char *new_file, struct Email *e)
Change the filename.
void nm_query_window_reset(void)
Resets the vfolder window position to the present.
int nm_get_all_tags(struct Mailbox *m, const char **tag_list, int *tag_count)
Fill a list with all notmuch tags.
void nm_db_longrun_done(struct Mailbox *m)
Finish a long transaction.
char * nm_email_get_folder_rel_db(struct Mailbox *m, struct Email *e)
Get the folder for a Email from the same level as the notmuch database.
int nm_record_message(struct Mailbox *m, char *path, struct Email *e)
Add a message to the Notmuch database.
int nm_read_entire_thread(struct Mailbox *m, struct Email *e)
Get the entire thread of an email.
void nm_query_window_backward(void)
Function to move the current search window backward in time.
const struct CompleteOps CompleteNmTagOps
Auto-Completion of NmTags.
bool nm_query_window_available(void)
Are windowed queries enabled for use?
const struct CompleteOps CompleteNmQueryOps
Auto-Completion of NmQuerys.
char * nm_url_from_query(struct Mailbox *m, char *buf, size_t buflen)
Turn a query into a URL.
void nm_init(void)
Setup feature commands.
void nm_db_longrun_init(struct Mailbox *m, bool writable)
Start a long transaction.
void nm_db_debug_check(struct Mailbox *m)
Check if the database is open.
char * nm_email_get_folder(struct Email *e)
Get the folder for a Email.
bool nm_message_is_still_queried(struct Mailbox *m, struct Email *e)
Is a message still visible in the query?
void nm_query_window_forward(void)
Function to move the current search window forward in time.
The envelope/body of an email.