Config definitions for the IMAP library.
70 {
71
72 {
"imap_check_subscribed",
DT_BOOL,
false, 0, NULL,
73 "(imap) When opening a mailbox, ask the server for a list of subscribed folders"
74 },
75 {
"imap_condstore",
DT_BOOL,
false, 0, NULL,
76 "(imap) Enable the CONDSTORE extension"
77 },
79 "(imap) List of allowed IMAP authentication methods (colon-separated)"
80 },
82 "(imap) Characters that denote separators in IMAP folders"
83 },
85 "(imap) Download headers in blocks of this size"
86 },
88 "(imap) Additional email headers to download when getting index"
89 },
90 {
"imap_idle",
DT_BOOL,
false, 0, NULL,
91 "(imap) Use the IMAP IDLE extension to check for new mail"
92 },
94 "(imap) Login name for the IMAP server (defaults to `$imap_user`)"
95 },
97 "(imap) External command to generate OAUTH refresh token"
98 },
100 "(imap) Password for the IMAP server"
101 },
103 "(imap) Number of IMAP commands that may be queued up"
104 },
105 {
"imap_rfc5161",
DT_BOOL,
true, 0, NULL,
106 "(imap) Use the IMAP ENABLE extension to select capabilities"
107 },
108 {
"imap_server_noise",
DT_BOOL,
true, 0, NULL,
109 "(imap) Display server warnings as error messages"
110 },
112 "(imap) Time to wait before polling an open IMAP connection"
113 },
114 {
"imap_list_subscribed",
DT_BOOL,
false, 0, NULL,
115 "(imap) When browsing a mailbox, only display subscribed folders"
116 },
117 {
"imap_passive",
DT_BOOL,
true, 0, NULL,
118 "(imap) Reuse an existing IMAP connection to check for new mail"
119 },
120 {
"imap_peek",
DT_BOOL,
true, 0, NULL,
121 "(imap) Don't mark messages as read when fetching them from the server"
122 },
124 "(imap) Maximum time to wait for a server response"
125 },
126 {
"imap_qresync",
DT_BOOL,
false, 0, NULL,
127 "(imap) Enable the QRESYNC extension"
128 },
129 {
"imap_send_id",
DT_BOOL,
false, 0, NULL,
130 "(imap) Send ID command when logging in"
131 },
133 "(imap) Username for the IMAP server"
134 },
135
136 {
"imap_keepalive",
DT_SYNONYM,
IP "imap_keep_alive",
IP "2023-05-31" },
137 {
"imap_servernoise",
DT_SYNONYM,
IP "imap_server_noise",
IP "2021-02-11" },
138 { NULL },
139
140};
static int imap_auth_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "imap_authenticators" config variable - Implements ConfigDef::validator() -.
#define D_SLIST_SEP_COLON
Slist items are colon-separated.
#define D_STRING_COMMAND
A command.
@ DT_SLIST
a list of strings
@ 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.