NeoMutt  2023-05-17-16-g61469c
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libsend. More...

#include "config.h"
#include <stddef.h>
#include <config/lib.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "mutt/lib.h"
#include "lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

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...
 
bool config_init_send (struct ConfigSet *cs)
 Register send config variables - Implements module_init_config_t -. More...
 

Variables

static struct ConfigDef SendVars []
 Config definitions for the send library. More...
 
static struct ConfigDef SendVarsNntp []
 NNTP Config definitions for the send library. More...
 
static struct ConfigDef SendVarsSmtp []
 SMTP Config definitions for the send library. More...
 

Detailed Description

Config used by libsend.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Variable Documentation

◆ SendVars

struct ConfigDef SendVars[]
static

Config definitions for the send library.

Definition at line 108 of file config.c.

◆ SendVarsNntp

struct ConfigDef SendVarsNntp[]
static
Initial value:
= {
{ "ask_followup_to", DT_BOOL, false, 0, NULL,
"(nntp) Ask the user for follow-up groups before editing"
},
{ "ask_x_comment_to", DT_BOOL, false, 0, NULL,
"(nntp) Ask the user for the 'X-Comment-To' field before editing"
},
"(nntp) External command to post news articles"
},
{ "mime_subject", DT_DEPRECATED|DT_BOOL, 0, IP "2021-03-24" },
{ "ask_follow_up", DT_SYNONYM, IP "ask_followup_to", IP "2023-01-20" },
{ NULL },
}
#define IP
Definition: set.h:54
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() -.
Definition: config.c:88
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_DEPRECATED
Config item shouldn't be used any more.
Definition: types.h:77
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:53
#define DT_SYNONYM
synonym for another variable
Definition: types.h:42

NNTP Config definitions for the send library.

Definition at line 351 of file config.c.

◆ SendVarsSmtp

struct ConfigDef SendVarsSmtp[]
static
Initial value:
= {
{ "smtp_authenticators", DT_SLIST|SLIST_SEP_COLON, 0, 0, smtp_auth_validator,
"(smtp) List of allowed authentication methods (colon-separated)"
},
{ "smtp_oauth_refresh_command", DT_STRING|DT_COMMAND|DT_SENSITIVE, 0, 0, NULL,
"(smtp) External command to generate OAUTH refresh token"
},
{ "smtp_pass", DT_STRING|DT_SENSITIVE, 0, 0, NULL,
"(smtp) Password for the SMTP server"
},
{ "smtp_url", DT_STRING|DT_SENSITIVE, 0, 0, NULL,
"(smtp) Url of the SMTP server"
},
{ "smtp_user", DT_STRING|DT_SENSITIVE, 0, 0, NULL,
"(smtp) Username for the SMTP server"
},
{ NULL },
}
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() -.
Definition: config.c:62
#define SLIST_SEP_COLON
Definition: slist.h:35
#define DT_SLIST
a list of strings
Definition: types.h:39
#define DT_SENSITIVE
Contains sensitive value, e.g. password.
Definition: types.h:52

SMTP Config definitions for the send library.

Definition at line 374 of file config.c.