59 intptr_t value,
struct Buffer *err)
62 const char *url = (
const char *) value;
65 buf_printf(err,
_(
"nm_default_url must be: notmuch://<absolute path> . Current: %s"), url);
78 "(notmuch) Configuration file for notmuch. Use 'auto' to detect configuration."
80 {
"nm_config_profile",
DT_STRING, 0, 0, NULL,
81 "(notmuch) Configuration profile for notmuch."
84 "(notmuch) Default limit for Notmuch queries"
87 "(notmuch) Path to the Notmuch database"
89 {
"nm_exclude_tags",
DT_STRING, 0, 0, NULL,
90 "(notmuch) Exclude messages with these tags"
92 {
"nm_flagged_tag",
DT_STRING,
IP "flagged", 0, NULL,
93 "(notmuch) Tag to use for flagged messages"
96 "(notmuch) Database timeout"
99 "(notmuch) Default query type: 'threads' or 'messages'"
101 {
"nm_query_window_current_position",
DT_NUMBER, 0, 0, NULL,
102 "(notmuch) Position of current search window"
104 {
"nm_query_window_current_search",
DT_STRING, 0, 0, NULL,
105 "(notmuch) Current search parameters"
108 "(notmuch) Time duration of the current search window"
110 {
"nm_query_window_enable",
DT_BOOL,
false, 0, NULL,
111 "(notmuch) Enable query windows"
113 {
"nm_query_window_or_terms",
DT_STRING, 0, 0, NULL,
114 "(notmuch) Additional notmuch search terms for messages to be shown regardless of date"
117 "(notmuch) Units for the time duration"
119 {
"nm_record_tags",
DT_STRING, 0, 0, NULL,
120 "(notmuch) Tags to apply to the 'record' mailbox (sent mail)"
122 {
"nm_replied_tag",
DT_STRING,
IP "replied", 0, NULL,
123 "(notmuch) Tag to use for replied messages"
125 {
"nm_unread_tag",
DT_STRING,
IP "unread", 0, NULL,
126 "(notmuch) Tag to use for unread messages"
128 {
"virtual_spool_file",
DT_BOOL,
false, 0, NULL,
129 "(notmuch) Use the first virtual mailbox as a spool file"
134 {
"nm_default_uri",
DT_SYNONYM,
IP "nm_default_url",
IP "2021-02-11" },
135 {
"virtual_spoolfile",
DT_SYNONYM,
IP "virtual_spool_file",
IP "2025-12-08" },
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Convenience wrapper for the config headers.
#define CSR_ERR_INVALID
Value hasn't been set.
#define CSR_SUCCESS
Action completed successfully.
static int nm_default_url_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "nm_default_url" config variable - Implements ConfigDef::validator() -.
Convenience wrapper for the library headers.
size_t mutt_istr_startswith(const char *str, const char *prefix)
Check whether a string starts with a prefix, ignoring case.
static bool is_valid_notmuch_url(const char *url)
Checks that a URL is in required form.
struct ConfigDef NotmuchVars[]
Config definitions for the Notmuch library.
const int NmUrlProtocolLen
Length of NmUrlProtocol string.
const char NmUrlProtocol[]
Protocol string for Notmuch URLs.
const struct EnumDef NmQueryWindowTimebaseDef
Data for the $nm_query_window_timebase enumeration.
const struct EnumDef NmQueryTypeDef
Data for the $nm_query_type enumeration.
@ NM_QUERY_TYPE_MESSAGES
Default: Messages only.
String manipulation buffer.
#define D_INTERNAL_DEPRECATED
Config item shouldn't be used any more.
#define D_PATH_FILE
Path is a file.
@ DT_SYNONYM
synonym for another variable
@ DT_PATH
a path to a file/directory
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.