46 intptr_t value,
struct Buffer *err)
48 const char *delim = (
const char *) value;
50 if (strlen(delim) != 1)
53 buf_printf(err,
_(
"maildir_field_delimiter must be exactly one character long"));
57 if (isalnum(*delim) || strchr(
"-.\\/", *delim))
60 buf_printf(err,
_(
"maildir_field_delimiter cannot be alphanumeric or '-.\\/'"));
72 {
"check_new",
DT_BOOL,
true, 0, NULL,
73 "(maildir,mh) Check for new mail while the mailbox is open"
75 {
"maildir_check_cur",
DT_BOOL,
false, 0, NULL,
76 "Check both 'new' and 'cur' directories for new mail"
79 "Field delimiter to be used for maildir email files (default is colon, recommended alternative is semi-colon)"
81 {
"maildir_trash",
DT_BOOL,
false, 0, NULL,
82 "Use the maildir 'trashed' flag, rather than deleting"
88#if defined(USE_HCACHE)
94 {
"maildir_header_cache_verify",
DT_BOOL,
true, 0, NULL,
95 "Check for maildir changes when opening mailbox"
109#if defined(USE_HCACHE)
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
#define CSR_ERR_INVALID
Value hasn't been set.
#define CSR_SUCCESS
Action completed successfully.
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() -.
bool config_init_maildir(struct ConfigSet *cs)
Register maildir config variables - Implements module_init_config_t -.
static struct ConfigDef MaildirVars[]
Config definitions for the Maildir library.
static struct ConfigDef MaildirVarsHcache[]
Config definitions for the Maildir header cache.
Convenience wrapper for the library headers.
String manipulation buffer.
Container for lots of config items.
#define D_NOT_EMPTY
Empty strings are not allowed.
#define D_ON_STARTUP
May only be set at startup.