23#ifndef MUTT_NOTMUCH_QUERY_H
24#define MUTT_NOTMUCH_QUERY_H
75 const short duration,
const short current_pos,
76 const char *current_search,
enum NmTimebase timebase,
77 const char *or_terms);
const struct EnumDef NmQueryWindowTimebaseDef
Data for the $nm_query_window_timebase enumeration.
const struct EnumDef NmQueryTypeDef
Data for the $nm_query_type enumeration.
enum NmQueryType nm_string_to_query_type(const char *str)
Lookup a query type.
NmWindowQueryRc
Return codes for nm_windowed_query_from_query()
@ NM_WINDOW_QUERY_SUCCESS
Query was successful.
@ NM_WINDOW_QUERY_INVALID_DURATION
Invalid duration.
@ NM_WINDOW_QUERY_INVALID_TIMEBASE
Invalid timebase.
NmQueryType
Notmuch Query Types.
@ NM_QUERY_TYPE_UNKNOWN
Unknown query type. Error in notmuch query.
@ NM_QUERY_TYPE_THREADS
Whole threads.
@ NM_QUERY_TYPE_MESSAGES
Default: Messages only.
enum NmQueryType nm_string_to_query_type_mapper(const char *str)
Lookup a query type.
enum NmQueryType nm_parse_type_from_query(char *buf, enum NmQueryType fallback)
Parse a query type out of a query.
const char * nm_query_type_to_string(enum NmQueryType query_type)
Turn a query type into a string.
enum NmWindowQueryRc nm_windowed_query_from_query(char *buf, size_t buflen, const bool force_enable, const short duration, const short current_pos, const char *current_search, enum NmTimebase timebase, const char *or_terms)
Windows buf with notmuch date: search term.
NmTimebase
Time periods for notmuch windowed queries.
@ NMTB_UNKNOWN
Unknown timebase.