46 intptr_t value,
struct Buffer *err)
48 const struct Slist *pop_auth_methods = (
const struct Slist *) value;
49 if (!pop_auth_methods || (pop_auth_methods->
count == 0))
73 {
"pop_auth_try_all",
DT_BOOL,
true, 0, NULL,
74 "(pop) Try all available authentication methods"
77 "(pop) List of allowed authentication methods (colon-separated)"
80 "(pop) Interval between checks for new mail"
83 "(pop) After downloading POP messages, delete them on the server"
86 "(pop) Url of the POP server"
88 {
"pop_last",
DT_BOOL,
false, 0, NULL,
89 "(pop) Use the 'LAST' command to fetch new mail"
92 "(pop) External command to generate OAUTH refresh token"
95 "(pop) Password of the POP server"
98 "(pop) Reconnect to the server is the connection is lost"
101 "(pop) Username of the POP server"
104 {
"pop_checkinterval",
DT_SYNONYM,
IP "pop_check_interval",
IP "2021-02-11" },
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 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() -.
bool config_init_pop(struct ConfigSet *cs)
Register pop config variables - Implements module_init_config_t -.
Convenience wrapper for the library headers.
bool pop_auth_is_valid(const char *authenticator)
Check if string is a valid pop authentication method.
static struct ConfigDef PopVars[]
Config definitions for the POP library.
@ MUTT_ASKNO
Ask the user, defaulting to 'No'.
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
#define STAILQ_FOREACH(var, head, field)
bool sasl_auth_validator(const char *authenticator)
Validate an auth method against Cyrus SASL methods.
String manipulation buffer.
const char * name
User-visible name.
Container for lots of config items.
struct ListHead head
List containing values.
size_t count
Number of values in list.
#define D_SLIST_SEP_COLON
Slist items are colon-separated.
#define D_STRING_COMMAND
A command.
@ DT_SLIST
a list of strings
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
@ DT_SYNONYM
synonym for another variable
#define D_SENSITIVE
Contains sensitive value, e.g. password.
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.