NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
mdata.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_NOTMUCH_MDATA_H
24 #define MUTT_NOTMUCH_MDATA_H
25 
26 #include "query.h"
27 
28 struct Mailbox;
29 
33 struct NmMboxData
34 {
35  struct Url *db_url;
36  char *db_query;
37  int db_limit;
39 
40  struct Progress *progress;
43 };
44 
45 void nm_mdata_free(void **ptr);
46 struct NmMboxData * nm_mdata_get (struct Mailbox *m);
47 struct NmMboxData * nm_mdata_new (const char *url);
48 
49 #endif /* MUTT_NOTMUCH_MDATA_H */
A parsed URL proto://user:password@host:port/path?a=1&b=2
Definition: url.h:68
struct NmMboxData * nm_mdata_new(const char *url)
Create a new NmMboxData object from a query.
Definition: mdata.c:69
A Progress Bar.
Definition: progress.c:47
int oldmsgcount
Definition: mdata.h:41
Notmuch query functions.
Notmuch-specific Mailbox data -.
Definition: mdata.h:33
struct Progress * progress
A progress bar.
Definition: mdata.h:40
struct NmMboxData * nm_mdata_get(struct Mailbox *m)
Get the Notmuch Mailbox data.
Definition: mdata.c:98
A mailbox.
Definition: mailbox.h:81
char * db_query
Previous query.
Definition: mdata.h:36
struct Url * db_url
Parsed view url of the Notmuch database.
Definition: mdata.h:35
int ignmsgcount
Ignored messages.
Definition: mdata.h:42
void nm_mdata_free(void **ptr)
Free the private Mailbox data - Implements Mailbox::mdata_free()
Definition: mdata.c:46
enum NmQueryType query_type
Messages or Threads.
Definition: mdata.h:38
int db_limit
Maximum number of results to return.
Definition: mdata.h:37
NmQueryType
Notmuch Query Types.
Definition: query.h:34