23#ifndef MUTT_NOTMUCH_QUERY_H
24#define MUTT_NOTMUCH_QUERY_H
57 const short duration,
const short current_pos,
58 const char *current_search,
const char *timebase,
59 const char *or_terms);
enum NmQueryType nm_string_to_query_type(const char *str)
Lookup a query type.
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, const char *timebase, const char *or_terms)
Windows buf with notmuch date: search term.
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_MESGS
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.
bool nm_query_window_check_timebase(const char *timebase)
Checks if a given timebase string is valid.
const char * nm_query_type_to_string(enum NmQueryType query_type)
Turn a query type into a string.