NeoMutt  2025-09-05-43-g177ed6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c File Reference

Config used by libpop. More...

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

Go to the source code of this file.

Functions

static int pop_auth_validator (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 -.
 

Variables

static struct ConfigDef PopVars []
 Config definitions for the POP library.
 

Detailed Description

Config used by libpop.

Authors
  • Yousef Akbar
  • 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

◆ PopVars

struct ConfigDef PopVars[]
static

Config definitions for the POP library.

Definition at line 70 of file config.c.

70 {
71 // clang-format off
72 { "pop_auth_try_all", DT_BOOL, true, 0, NULL,
73 "(pop) Try all available authentication methods"
74 },
75 { "pop_authenticators", DT_SLIST|D_SLIST_SEP_COLON, 0, 0, pop_auth_validator,
76 "(pop) List of allowed authentication methods (colon-separated)"
77 },
78 { "pop_check_interval", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 60, 0, NULL,
79 "(pop) Interval between checks for new mail"
80 },
81 { "pop_delete", DT_QUAD, MUTT_ASKNO, 0, NULL,
82 "(pop) After downloading POP messages, delete them on the server"
83 },
84 { "pop_host", DT_STRING, 0, 0, NULL,
85 "(pop) Url of the POP server"
86 },
87 { "pop_last", DT_BOOL, false, 0, NULL,
88 "(pop) Use the 'LAST' command to fetch new mail"
89 },
90 { "pop_oauth_refresh_command", DT_STRING|D_STRING_COMMAND|D_SENSITIVE, 0, 0, NULL,
91 "(pop) External command to generate OAUTH refresh token"
92 },
93 { "pop_pass", DT_STRING|D_SENSITIVE, 0, 0, NULL,
94 "(pop) Password of the POP server"
95 },
96 { "pop_reconnect", DT_QUAD, MUTT_ASKYES, 0, NULL,
97 "(pop) Reconnect to the server is the connection is lost"
98 },
99 { "pop_user", DT_STRING|D_SENSITIVE, 0, 0, NULL,
100 "(pop) Username of the POP server"
101 },
102
103 { "pop_checkinterval", DT_SYNONYM, IP "pop_check_interval", IP "2021-02-11" },
104 { NULL },
105 // clang-format on
106};
#define IP
Definition set.h:52
static int pop_auth_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "pop_authenticators" config variable - Implements ConfigDef::validator() -.
Definition config.c:45
@ MUTT_ASKNO
Ask the user, defaulting to 'No'.
Definition quad.h:40
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
Definition quad.h:41
#define D_SLIST_SEP_COLON
Slist items are colon-separated.
Definition types.h:111
#define D_STRING_COMMAND
A command.
Definition types.h:98
@ DT_NUMBER
a number
Definition types.h:38
@ DT_SLIST
a list of strings
Definition types.h:42
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition types.h:40
@ DT_SYNONYM
synonym for another variable
Definition types.h:45
@ DT_STRING
a string
Definition types.h:44
#define D_SENSITIVE
Contains sensitive value, e.g. password.
Definition types.h:80
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition types.h:100