Validate a config variable. More...
Functions | |
int | charset_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "charset" config variable - Implements ConfigDef::validator() -. More... | |
int | charset_slist_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "charset" config variable - Implements ConfigDef::validator() - This is a version for charset options is Slist. More... | |
static int | hcache_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "header_cache_backend" config variable - Implements ConfigDef::validator() -. More... | |
static int | compress_method_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "header_cache_compress_method" config variable - Implements ConfigDef::validator() -. More... | |
static int | compress_level_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "header_cache_compress_level" config variable - Implements ConfigDef::validator() -. More... | |
static int | imap_auth_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "imap_authenticators" config variable - Implements ConfigDef::validator() -. More... | |
static int | multipart_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "show_multipart_alternative" config variable - Implements ConfigDef::validator() -. More... | |
static int | reply_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "reply_regex" config variable - Implements ConfigDef::validator() -. More... | |
int | level_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "debug_level" config variable - Implements ConfigDef::validator() -. More... | |
int | sort_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate values of "sort" - Implements ConfigDef::validator() -. More... | |
static int | nm_default_url_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Ensure nm_default_url is of the form notmuch://[absolute path] - Implements ConfigDef::validator() -. More... | |
static int | nm_query_window_timebase_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Ensures nm_query_window_timebase matches allowed values - Implements ConfigDef::validator() -. More... | |
static int | pop_auth_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "pop_authenticators" config variable - Implements ConfigDef::validator() -. More... | |
static int | wrapheaders_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "wrap_headers" config variable - Implements ConfigDef::validator() -. More... | |
static int | smtp_auth_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "smtp_authenticators" config variable - Implements ConfigDef::validator() -. More... | |
static int | simple_command_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "sendmail" and "inews" config variables - Implements ConfigDef::validator() -. More... | |
Validate a config variable.
cs | Config items |
cdef | Config definition |
value | Native value |
err | Message for the user |
CSR_SUCCESS | Success |
CSR_ERR_INVALID | Failure |
int charset_validator | ( | const struct ConfigSet * | cs, |
const struct ConfigDef * | cdef, | ||
intptr_t | value, | ||
struct Buffer * | err | ||
) |
Validate the "charset" config variable - Implements ConfigDef::validator() -.
Definition at line 40 of file charset.c.
int charset_slist_validator | ( | const struct ConfigSet * | cs, |
const struct ConfigDef * | cdef, | ||
intptr_t | value, | ||
struct Buffer * | err | ||
) |
Validate the "charset" config variable - Implements ConfigDef::validator() - This is a version for charset options is Slist.
Definition at line 79 of file charset.c.
|
static |
Validate the "header_cache_backend" config variable - Implements ConfigDef::validator() -.
Definition at line 42 of file config.c.
|
static |
Validate the "header_cache_compress_method" config variable - Implements ConfigDef::validator() -.
Definition at line 65 of file config.c.
|
static |
Validate the "header_cache_compress_level" config variable - Implements ConfigDef::validator() -.
Definition at line 88 of file config.c.
|
static |
Validate the "imap_authenticators" config variable - Implements ConfigDef::validator() -.
Definition at line 43 of file config.c.
|
static |
Validate the "show_multipart_alternative" config variable - Implements ConfigDef::validator() -.
Definition at line 98 of file mutt_config.c.
|
static |
Validate the "reply_regex" config variable - Implements ConfigDef::validator() -.
Definition at line 116 of file mutt_config.c.
int level_validator | ( | const struct ConfigSet * | cs, |
const struct ConfigDef * | cdef, | ||
intptr_t | value, | ||
struct Buffer * | err | ||
) |
Validate the "debug_level" config variable - Implements ConfigDef::validator() -.
Definition at line 272 of file mutt_logging.c.
int sort_validator | ( | const struct ConfigSet * | cs, |
const struct ConfigDef * | cdef, | ||
intptr_t | value, | ||
struct Buffer * | err | ||
) |
Validate values of "sort" - Implements ConfigDef::validator() -.
Definition at line 115 of file mutt_thread.c.
|
static |
Ensure nm_default_url is of the form notmuch://[absolute path] - Implements ConfigDef::validator() -.
Definition at line 53 of file config.c.
|
static |
Ensures nm_query_window_timebase matches allowed values - Implements ConfigDef::validator() -.
Allowed values:
Definition at line 78 of file config.c.
|
static |
Validate the "pop_authenticators" config variable - Implements ConfigDef::validator() -.
Definition at line 41 of file config.c.
|
static |
Validate the "wrap_headers" config variable - Implements ConfigDef::validator() -.
Definition at line 44 of file config.c.
|
static |
Validate the "smtp_authenticators" config variable - Implements ConfigDef::validator() -.
Definition at line 62 of file config.c.
|
static |
Validate the "sendmail" and "inews" config variables - Implements ConfigDef::validator() -.
Definition at line 89 of file config.c.