NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
23
42
43#ifndef MUTT_NOTMUCH_LIB_H
44#define MUTT_NOTMUCH_LIB_H
45
46#include <stdbool.h>
47#include <stddef.h>
48#include "core/lib.h"
49
50struct Email;
51struct stat;
52
53extern const struct CompleteOps CompleteNmQueryOps;
54extern const struct CompleteOps CompleteNmTagOps;
55
56extern const struct MxOps MxNotmuchOps;
57
58void nm_db_debug_check (struct Mailbox *m);
59void nm_db_longrun_done (struct Mailbox *m);
60void nm_db_longrun_init (struct Mailbox *m, bool writable);
61char *nm_email_get_folder (struct Email *e);
62char *nm_email_get_folder_rel_db (struct Mailbox *m, struct Email *e);
63int nm_get_all_tags (struct Mailbox *m, const char **tag_list, int *tag_count);
64bool nm_message_is_still_queried(struct Mailbox *m, struct Email *e);
65enum MailboxType nm_path_probe (const char *path, const struct stat *st);
67void nm_query_window_backward (void);
68void nm_query_window_forward (void);
69void nm_query_window_reset (void);
70int nm_read_entire_thread (struct Mailbox *m, struct Email *e);
71int nm_record_message (struct Mailbox *m, char *path, struct Email *e);
72int nm_update_filename (struct Mailbox *m, const char *old_file, const char *new_file, struct Email *e);
73char *nm_url_from_query (struct Mailbox *m, char *buf, size_t buflen);
74
75#endif /* MUTT_NOTMUCH_LIB_H */
Convenience wrapper for the core headers.
MailboxType
Supported mailbox formats.
Definition mailbox.h:40
const struct MxOps MxNotmuchOps
Notmuch Mailbox - Implements MxOps -.
Definition notmuch.c:2525
enum MailboxType nm_path_probe(const char *path, const struct stat *st)
Is this a Notmuch Mailbox?
Definition notmuch.c:2506
const struct CompleteOps CompleteNmTagOps
Auto-Completion of NmTags.
Definition complete.c:254
const struct CompleteOps CompleteNmQueryOps
Auto-Completion of NmQuerys.
Definition complete.c:247
int nm_update_filename(struct Mailbox *m, const char *old_file, const char *new_file, struct Email *e)
Change the filename.
Definition notmuch.c:1808
void nm_query_window_reset(void)
Resets the vfolder window position to the present.
Definition notmuch.c:1722
int nm_get_all_tags(struct Mailbox *m, const char **tag_list, int *tag_count)
Fill a list with all notmuch tags.
Definition notmuch.c:2024
void nm_db_longrun_done(struct Mailbox *m)
Finish a long transaction.
Definition db.c:379
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.
Definition notmuch.c:1524
int nm_record_message(struct Mailbox *m, char *path, struct Email *e)
Add a message to the Notmuch database.
Definition notmuch.c:1941
int nm_read_entire_thread(struct Mailbox *m, struct Email *e)
Get the entire thread of an email.
Definition notmuch.c:1550
void nm_query_window_backward(void)
Function to move the current search window backward in time.
Definition notmuch.c:1711
bool nm_query_window_available(void)
Are windowed queries enabled for use?
Definition notmuch.c:1674
char * nm_url_from_query(struct Mailbox *m, char *buf, size_t buflen)
Turn a query into a URL.
Definition notmuch.c:1615
void nm_db_longrun_init(struct Mailbox *m, bool writable)
Start a long transaction.
Definition db.c:364
void nm_db_debug_check(struct Mailbox *m)
Check if the database is open.
Definition db.c:397
char * nm_email_get_folder(struct Email *e)
Get the folder for a Email.
Definition notmuch.c:1505
bool nm_message_is_still_queried(struct Mailbox *m, struct Email *e)
Is a message still visible in the query?
Definition notmuch.c:1734
void nm_query_window_forward(void)
Function to move the current search window forward in time.
Definition notmuch.c:1691
The envelope/body of an email.
Definition email.h:39
A mailbox.
Definition mailbox.h:78
Definition mxapi.h:87