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 variables - Implements ConfigDef::validator() -. | |
int | charset_slist_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the multiple "charset" config variables - Implements ConfigDef::validator() -. | |
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() -. | |
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() -. | |
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() -. | |
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() -. | |
static int | maildir_field_delimiter_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "maildir_field_delimiter" config variable - Implements ConfigDef::validator() -. | |
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() -. | |
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() -. | |
int | sort_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "sort" config variable - Implements ConfigDef::validator() -. | |
static int | nm_default_url_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "nm_default_url" config variable - Implements ConfigDef::validator() -. | |
static int | nm_query_window_timebase_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "nm_query_window_timebase" config variable - Implements ConfigDef::validator() -. | |
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() -. | |
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() -. | |
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() -. | |
static int | simple_command_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Validate the "sendmail" config variable - Implements ConfigDef::validator() -. | |
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 variables - Implements ConfigDef::validator() -.
Validate the config variables that contain a single charset.
Definition at line 45 of file charset.c.
int charset_slist_validator | ( | const struct ConfigSet * | cs, |
const struct ConfigDef * | cdef, | ||
intptr_t | value, | ||
struct Buffer * | err | ||
) |
Validate the multiple "charset" config variables - Implements ConfigDef::validator() -.
Validate the config variables that can contain a multiple charsets.
Definition at line 85 of file charset.c.
|
static |
Validate the "header_cache_backend" config variable - Implements ConfigDef::validator() -.
Definition at line 44 of file config.c.
|
static |
Validate the "header_cache_compress_method" config variable - Implements ConfigDef::validator() -.
Definition at line 67 of file config.c.
|
static |
Validate the "header_cache_compress_level" config variable - Implements ConfigDef::validator() -.
Definition at line 90 of file config.c.
|
static |
Validate the "imap_authenticators" config variable - Implements ConfigDef::validator() -.
Definition at line 45 of file config.c.
|
static |
Validate the "maildir_field_delimiter" config variable - Implements ConfigDef::validator() -.
Ensure maildir_field_delimiter is a single non-alphanumeric non-(-.\/) character.
Definition at line 44 of file config.c.
|
static |
Validate the "show_multipart_alternative" config variable - Implements ConfigDef::validator() -.
Definition at line 111 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 270 of file mutt_logging.c.
int sort_validator | ( | const struct ConfigSet * | cs, |
const struct ConfigDef * | cdef, | ||
intptr_t | value, | ||
struct Buffer * | err | ||
) |
Validate the "sort" config variable - Implements ConfigDef::validator() -.
Definition at line 108 of file mutt_thread.c.
|
static |
Validate the "nm_default_url" config variable - Implements ConfigDef::validator() -.
Ensure nm_default_url is of the form notmuch://[absolute path]
Definition at line 58 of file config.c.
|
static |
Validate the "nm_query_window_timebase" config variable - Implements ConfigDef::validator() -.
Ensure $nm_query_window_timebase matches allowed values.
Allowed values:
Definition at line 84 of file config.c.
|
static |
Validate the "pop_authenticators" config variable - Implements ConfigDef::validator() -.
Definition at line 45 of file config.c.
|
static |
Validate the "wrap_headers" config variable - Implements ConfigDef::validator() -.
Definition at line 58 of file config.c.
|
static |
Validate the "smtp_authenticators" config variable - Implements ConfigDef::validator() -.
Definition at line 76 of file config.c.
|
static |
Validate the "sendmail" config variable - Implements ConfigDef::validator() -.
Definition at line 102 of file config.c.