NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
28
34
35#include "config.h"
36#include <stdbool.h>
37#include <stdint.h>
38#include <string.h>
39#include "mutt/lib.h"
40#include "config/lib.h"
41#include "email/lib.h"
42#include "expando/lib.h"
43#include "expando_msgid.h"
44#include "smtp.h"
45#ifdef USE_SASL_CYRUS
46#include "conn/lib.h"
47#endif
48
49extern const struct ExpandoDefinition IndexFormatDef[];
50
52static const struct ExpandoDefinition *const IndexFormatDefNoPadding = &(IndexFormatDef[3]);
53
54extern const struct ExpandoDefinition NntpFormatDef[];
55
59static int wrapheaders_validator(const struct ConfigDef *cdef, intptr_t value,
60 struct Buffer *err)
61{
62 const int min_length = 78; // Recommendations from RFC5233
63 const int max_length = 998;
64
65 if ((value >= min_length) && (value <= max_length))
66 return CSR_SUCCESS;
67
68 // L10N: This applies to the "$wrap_headers" config variable.
69 buf_printf(err, _("Option %s must be between %d and %d inclusive"),
70 cdef->name, min_length, max_length);
71 return CSR_ERR_INVALID;
72}
73
77static int smtp_auth_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
78{
79 const struct Slist *smtp_auth_methods = (const struct Slist *) value;
80 if (!smtp_auth_methods || (smtp_auth_methods->count == 0))
81 return CSR_SUCCESS;
82
83 struct ListNode *np = NULL;
84 STAILQ_FOREACH(np, &smtp_auth_methods->head, entries)
85 {
86 if (smtp_auth_is_valid(np->data))
87 continue;
88#ifdef USE_SASL_CYRUS
90 continue;
91#endif
92 buf_printf(err, _("Option %s: %s is not a valid authenticator"), cdef->name, np->data);
93 return CSR_ERR_INVALID;
94 }
95
96 return CSR_SUCCESS;
97}
98
102static int simple_command_validator(const struct ConfigDef *cdef,
103 intptr_t value, struct Buffer *err)
104{
105 // Check for shell metacharacters that won't do what the user expects
106 const char *valstr = (const char *) value;
107 if (!valstr)
108 return CSR_SUCCESS;
109
110 const char c = valstr[strcspn(valstr, "|&;()<>[]{}$`'~\"\\*?")];
111 if (c == '\0')
112 return CSR_SUCCESS;
113
114 // L10N: This applies to the "$sendmail" and "$inews_command" config variables.
115 buf_printf(err, _("Option %s must not contain shell metacharacters: %c"), cdef->name, c);
116 return CSR_ERR_INVALID;
117}
118
125static const struct ExpandoDefinition GreetingFormatDef[] = {
126 // clang-format off
127 { "n", "real-name", ED_ENVELOPE, ED_ENV_REAL_NAME, NULL },
128 { "u", "user-name", ED_ENVELOPE, ED_ENV_USER_NAME, NULL },
129 { "v", "first-name", ED_ENVELOPE, ED_ENV_FIRST_NAME, NULL },
130 { NULL, NULL, 0, -1, NULL }
131 // clang-format on
132};
133
140static const struct ExpandoDefinition MsgIdFormatDef[] = {
141 // clang-format off
142 { "c", "counter", ED_MSG_ID, ED_MSG_COUNTER, NULL },
143 { "d", "day", ED_MSG_ID, ED_MSG_DAY, NULL },
144 { "f", "hostname", ED_MSG_ID, ED_MSG_HOSTNAME, NULL },
145 { "H", "hour", ED_MSG_ID, ED_MSG_HOUR, NULL },
146 { "M", "minute", ED_MSG_ID, ED_MSG_MINUTE, NULL },
147 { "m", "month", ED_MSG_ID, ED_MSG_MONTH, NULL },
148 { "p", "pid", ED_MSG_ID, ED_MSG_PID, NULL },
149 { "r", "random_3", ED_MSG_ID, ED_MSG_RANDOM_3, NULL },
150 { "S", "second", ED_MSG_ID, ED_MSG_SECOND, NULL },
151 { "x", "random_1", ED_MSG_ID, ED_MSG_RANDOM_1, NULL },
152 { "Y", "year", ED_MSG_ID, ED_MSG_YEAR, NULL },
153 { "z", "random_12", ED_MSG_ID, ED_MSG_RANDOM_12, NULL },
154 { NULL, NULL, 0, -1, NULL }
155 // clang-format on
156};
157
161struct ConfigDef SendVars[] = {
162 // clang-format off
163 { "abort_noattach", DT_QUAD, MUTT_NO, 0, NULL,
164 "Abort sending the email if attachments are missing"
165 },
166 // L10N: $abort_noattach_regex default format
167 { "abort_noattach_regex", DT_REGEX|D_L10N_STRING, IP N_("\\<(attach|attached|attachments?)\\>"), 0, NULL,
168 "Regex to match text indicating attachments are expected"
169 },
170 { "abort_nosubject", DT_QUAD, MUTT_ASKYES, 0, NULL,
171 "Abort creating the email if subject is missing"
172 },
173 { "abort_unmodified", DT_QUAD, MUTT_YES, 0, NULL,
174 "Abort the sending if the message hasn't been edited"
175 },
176 { "allow_8bit", DT_BOOL, true, 0, NULL,
177 "Allow 8-bit messages, don't use quoted-printable or base64"
178 },
179 { "ask_bcc", DT_BOOL, false, 0, NULL,
180 "Ask the user for the blind-carbon-copy recipients"
181 },
182 { "ask_cc", DT_BOOL, false, 0, NULL,
183 "Ask the user for the carbon-copy recipients"
184 },
185 { "ask_followup_to", DT_BOOL, false, 0, NULL,
186 "(nntp) Ask the user for follow-up groups before editing"
187 },
188 { "ask_x_comment_to", DT_BOOL, false, 0, NULL,
189 "(nntp) Ask the user for the 'X-Comment-To' field before editing"
190 },
192 "When attaching files, use one of these character sets"
193 },
194 // L10N: $attribution_intro default format
195 { "attribution_intro", DT_EXPANDO|D_L10N_STRING, IP N_("On %d, %n wrote:"), IP IndexFormatDefNoPadding, NULL,
196 "Message to start a reply, 'On DATE, PERSON wrote:'"
197 },
198 { "attribution_locale", DT_STRING, 0, 0, NULL,
199 "Locale for dates in the attribution message"
200 },
201 { "attribution_trailer", DT_EXPANDO, 0, IP IndexFormatDefNoPadding, NULL,
202 "Suffix message to add after reply text"
203 },
204 { "bounce_delivered", DT_BOOL, true, 0, NULL,
205 "Add 'Delivered-To' to bounced messages"
206 },
207 { "confirm_empty_to", DT_BOOL, false, 0, NULL,
208 "Ask for a confirmation before sending an email with an empty To recipients list"
209 },
210 { "content_type", DT_STRING, IP "text/plain", 0, NULL,
211 "Default 'Content-Type' for newly composed messages"
212 },
213 { "crypt_auto_encrypt", DT_BOOL, false, 0, NULL,
214 "Automatically PGP encrypt all outgoing mail"
215 },
216 { "crypt_auto_pgp", DT_BOOL, true, 0, NULL,
217 "Allow automatic PGP functions"
218 },
219 { "crypt_auto_sign", DT_BOOL, false, 0, NULL,
220 "Automatically PGP sign all outgoing mail"
221 },
222 { "crypt_auto_smime", DT_BOOL, true, 0, NULL,
223 "Allow automatic SMIME functions"
224 },
225 { "crypt_reply_encrypt", DT_BOOL, true, 0, NULL,
226 "Encrypt replies to encrypted messages"
227 },
228 { "crypt_reply_sign", DT_BOOL, false, 0, NULL,
229 "Sign replies to signed messages"
230 },
231 { "crypt_reply_sign_encrypted", DT_BOOL, false, 0, NULL,
232 "Sign replies to encrypted messages"
233 },
234 { "dsn_notify", DT_STRING, 0, 0, NULL,
235 "Request notification for message delivery or delay"
236 },
237 { "dsn_return", DT_STRING, 0, 0, NULL,
238 "What to send as a notification of message delivery or delay"
239 },
240 { "empty_subject", DT_STRING, IP "Re: your mail", 0, NULL,
241 "Subject to use when replying to an email with none"
242 },
243 { "encode_from", DT_BOOL, false, 0, NULL,
244 "Encode 'From ' as 'quote-printable' at the beginning of lines"
245 },
246 { "fast_reply", DT_BOOL, false, 0, NULL,
247 "Don't prompt for the recipients and subject when replying/forwarding"
248 },
249 { "fcc_attach", DT_QUAD, MUTT_YES, 0, NULL,
250 "Save sent message with all their attachments"
251 },
252 { "fcc_before_send", DT_BOOL, false, 0, NULL,
253 "Save FCCs before sending the message"
254 },
255 { "fcc_clear", DT_BOOL, false, 0, NULL,
256 "Save sent messages unencrypted and unsigned"
257 },
258 { "followup_to", DT_BOOL, true, 0, NULL,
259 "Add the 'Mail-Followup-To' header is generated when sending mail"
260 },
261 { "forward_attachments", DT_QUAD, MUTT_ASKYES, 0, NULL,
262 "Forward attachments when forwarding a message"
263 },
264 // L10N: $forward_attribution_intro default format
265 { "forward_attribution_intro", DT_EXPANDO|D_L10N_STRING, IP N_("----- Forwarded message from %f -----"), IP IndexFormatDefNoPadding, NULL,
266 "Prefix message for forwarded messages"
267 },
268 // L10N: $forward_attribution_trailer default format
269 { "forward_attribution_trailer", DT_EXPANDO|D_L10N_STRING, IP N_("----- End forwarded message -----"), IP IndexFormatDefNoPadding, NULL,
270 "Suffix message for forwarded messages"
271 },
272 { "forward_decrypt", DT_BOOL, true, 0, NULL,
273 "Decrypt the message when forwarding it"
274 },
275 { "forward_edit", DT_QUAD, MUTT_YES, 0, NULL,
276 "Automatically start the editor when forwarding a message"
277 },
278 { "forward_format", DT_EXPANDO|D_NOT_EMPTY, IP "[%a: %s]", IP IndexFormatDefNoPadding, NULL,
279 "printf-like format string to control the subject when forwarding a message"
280 },
281 { "forward_references", DT_BOOL, false, 0, NULL,
282 "Set the 'In-Reply-To' and 'References' headers when forwarding a message"
283 },
284 { "greeting", DT_EXPANDO, 0, IP &GreetingFormatDef, NULL,
285 "Greeting string added to the top of all messages"
286 },
287 { "hdrs", DT_BOOL, true, 0, NULL,
288 "Add custom headers to outgoing mail"
289 },
290 { "hidden_host", DT_BOOL, false, 0, NULL,
291 "Don't use the hostname, just the domain, when generating the message id"
292 },
293 { "honor_followup_to", DT_QUAD, MUTT_YES, 0, NULL,
294 "Honour the 'Mail-Followup-To' header when group replying"
295 },
296 { "ignore_list_reply_to", DT_BOOL, false, 0, NULL,
297 "Ignore the 'Reply-To' header when using `<reply>` on a mailing list"
298 },
299 { "include", DT_QUAD, MUTT_ASKYES, 0, NULL,
300 "Include a copy of the email that's being replied to"
301 },
302 { "inews_command", DT_EXPANDO|D_STRING_COMMAND, 0, IP &NntpFormatDef, NULL,
303 "(nntp) External command to post news articles"
304 },
305 { "me_too", DT_BOOL, false, 0, NULL,
306 "Remove the user's address from the list of recipients"
307 },
308 { "message_id_format", DT_EXPANDO, IP "<%z@%f>", IP &MsgIdFormatDef, NULL,
309 "Custom format for the Message-ID"
310 },
311 { "mime_forward_decode", DT_BOOL, false, 0, NULL,
312 "Decode the forwarded message before attaching it"
313 },
314 { "mime_type_query_command", DT_STRING|D_STRING_COMMAND, 0, 0, NULL,
315 "External command to determine the MIME type of an attachment"
316 },
317 { "mime_type_query_first", DT_BOOL, false, 0, NULL,
318 "Run the `$mime_type_query_command` before the mime.types lookup"
319 },
320 { "nm_record", DT_BOOL, false, 0, NULL,
321 "(notmuch) If the 'record' mailbox (sent mail) should be indexed"
322 },
323 { "pgp_reply_inline", DT_BOOL, false, 0, NULL,
324 "Reply using old-style inline PGP messages (not recommended)"
325 },
326 { "postpone_encrypt", DT_BOOL, false, 0, NULL,
327 "Self-encrypt postponed messages"
328 },
329 { "postpone_encrypt_as", DT_STRING, 0, 0, NULL,
330 "Fallback encryption key for postponed messages"
331 },
332 { "recall", DT_QUAD, MUTT_ASKYES, 0, NULL,
333 "Recall postponed mesaages when asked to compose a message"
334 },
335 { "reply_self", DT_BOOL, false, 0, NULL,
336 "Really reply to yourself, when replying to your own email"
337 },
338 { "reply_to", DT_QUAD, MUTT_ASKYES, 0, NULL,
339 "Address to use as a 'Reply-To' header"
340 },
341 { "reply_with_xorig", DT_BOOL, false, 0, NULL,
342 "Create 'From' header from 'X-Original-To' header"
343 },
344 { "resume_draft_files", DT_BOOL, false, 0, NULL,
345 "Process draft files like postponed messages"
346 },
347 { "reverse_name", DT_BOOL, false, 0, NULL,
348 "Set the 'From' from the address the email was sent to"
349 },
350 { "reverse_real_name", DT_BOOL, true, 0, NULL,
351 "Set the 'From' from the full 'To' address the email was sent to"
352 },
353 { "sendmail", DT_STRING|D_STRING_COMMAND, IP SENDMAIL " -oem -oi", 0, simple_command_validator,
354 "External command to send email"
355 },
356 { "sendmail_wait", DT_NUMBER, 0, 0, NULL,
357 "Time to wait for sendmail to finish"
358 },
359 { "sig_dashes", DT_BOOL, true, 0, NULL,
360 "Insert '-- ' before the signature"
361 },
362 { "sig_on_top", DT_BOOL, false, 0, NULL,
363 "Insert the signature before the quoted text"
364 },
365 { "signature", DT_PATH|D_PATH_FILE, IP "~/.signature", 0, NULL,
366 "File containing a signature to append to all mail"
367 },
368 { "smtp_authenticators", DT_SLIST|D_SLIST_SEP_COLON, 0, 0, smtp_auth_validator,
369 "(smtp) List of allowed authentication methods (colon-separated)"
370 },
371 { "smtp_oauth_refresh_command", DT_STRING|D_STRING_COMMAND|D_SENSITIVE, 0, 0, NULL,
372 "(smtp) External command to generate OAUTH refresh token"
373 },
374 { "smtp_pass", DT_STRING|D_SENSITIVE, 0, 0, NULL,
375 "(smtp) Password for the SMTP server"
376 },
377 { "smtp_url", DT_STRING|D_SENSITIVE, 0, 0, NULL,
378 "(smtp) Url of the SMTP server"
379 },
380 { "smtp_user", DT_STRING|D_SENSITIVE, 0, 0, NULL,
381 "(smtp) Username for the SMTP server"
382 },
383 { "use_8bit_mime", DT_BOOL, false, 0, NULL,
384 "Use 8-bit messages and ESMTP to send messages"
385 },
386 { "use_envelope_from", DT_BOOL, false, 0, NULL,
387 "Set the envelope sender of the message"
388 },
389 { "use_from", DT_BOOL, true, 0, NULL,
390 "Set the 'From' header for outgoing mail"
391 },
392 { "user_agent", DT_BOOL, false, 0, NULL,
393 "Add a 'User-Agent' header to outgoing mail"
394 },
396 "Width to wrap headers in outgoing messages"
397 },
398 { "write_bcc", DT_BOOL, false, 0, NULL,
399 "Write out the 'Bcc' field when preparing to send a mail"
400 },
401
402 { "abort_noattach_regexp", DT_SYNONYM, IP "abort_noattach_regex", IP "2021-03-21" },
403 { "askbcc", DT_SYNONYM, IP "ask_bcc", IP "2021-03-21" },
404 { "askcc", DT_SYNONYM, IP "ask_cc", IP "2021-03-21" },
405 { "ask_follow_up", DT_SYNONYM, IP "ask_followup_to", IP "2023-01-20" },
406 { "attach_keyword", DT_SYNONYM, IP "abort_noattach_regex", IP "2021-03-21" },
407 { "attribution", DT_SYNONYM, IP "attribution_intro", IP "2023-02-20" },
408 { "crypt_autoencrypt", DT_SYNONYM, IP "crypt_auto_encrypt", IP "2021-03-21" },
409 { "crypt_autopgp", DT_SYNONYM, IP "crypt_auto_pgp", IP "2021-03-21" },
410 { "crypt_autosign", DT_SYNONYM, IP "crypt_auto_sign", IP "2021-03-21" },
411 { "crypt_autosmime", DT_SYNONYM, IP "crypt_auto_smime", IP "2021-03-21" },
412 { "crypt_replyencrypt", DT_SYNONYM, IP "crypt_reply_encrypt", IP "2021-03-21" },
413 { "crypt_replysign", DT_SYNONYM, IP "crypt_reply_sign", IP "2021-03-21" },
414 { "crypt_replysignencrypted", DT_SYNONYM, IP "crypt_reply_sign_encrypted", IP "2021-03-21" },
415 { "envelope_from", DT_SYNONYM, IP "use_envelope_from", IP "2021-03-21" },
416 { "forw_decrypt", DT_SYNONYM, IP "forward_decrypt", IP "2021-03-21" },
417 { "forw_format", DT_SYNONYM, IP "forward_format", IP "2021-03-21" },
418 { "inews", DT_SYNONYM, IP "inews_command", IP "2025-12-15" },
419 { "metoo", DT_SYNONYM, IP "me_too", IP "2021-03-21" },
420 { "pgp_autoencrypt", DT_SYNONYM, IP "crypt_auto_encrypt", IP "2021-03-21" },
421 { "pgp_autosign", DT_SYNONYM, IP "crypt_auto_sign", IP "2021-03-21" },
422 { "pgp_auto_traditional", DT_SYNONYM, IP "pgp_reply_inline", IP "2021-03-21" },
423 { "pgp_replyencrypt", DT_SYNONYM, IP "crypt_reply_encrypt", IP "2021-03-21" },
424 { "pgp_replyinline", DT_SYNONYM, IP "pgp_reply_inline", IP "2021-03-21" },
425 { "pgp_replysign", DT_SYNONYM, IP "crypt_reply_sign", IP "2021-03-21" },
426 { "pgp_replysignencrypted", DT_SYNONYM, IP "crypt_reply_sign_encrypted", IP "2021-03-21" },
427 { "post_indent_str", DT_SYNONYM, IP "attribution_trailer", IP "2021-03-21" },
428 { "post_indent_string", DT_SYNONYM, IP "attribution_trailer", IP "2023-02-20" },
429 { "reverse_realname", DT_SYNONYM, IP "reverse_real_name", IP "2021-03-21" },
430 { "use_8bitmime", DT_SYNONYM, IP "use_8bit_mime", IP "2021-03-21" },
431
432 { "mime_subject", D_INTERNAL_DEPRECATED|DT_BOOL, 0, IP "2021-03-24" },
433 { NULL },
434 // clang-format on
435};
const struct ExpandoDefinition IndexFormatDef[]
Expando definitions.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Definition buffer.c:161
Convenience wrapper for the config headers.
#define CSR_ERR_INVALID
Value hasn't been set.
Definition set.h:36
#define CSR_SUCCESS
Action completed successfully.
Definition set.h:33
#define IP
Definition set.h:55
Connection Library.
@ ED_ENVELOPE
Envelope ED_ENV_ ExpandoDataEnvelope.
Definition domain.h:42
@ ED_MSG_ID
Message Id ED_MSG_ ExpandoDataMsgId.
Definition domain.h:49
Structs that make up an email.
@ ED_ENV_REAL_NAME
Envelope.to (first)
Definition envelope.h:111
@ ED_ENV_USER_NAME
Envelope.to (first)
Definition envelope.h:122
@ ED_ENV_FIRST_NAME
Envelope.from, Envelope.to, Envelope.cc.
Definition envelope.h:101
Parse Expando string.
Message Id Expando definitions.
@ ED_MSG_COUNTER
Step counter looping from 'A' to 'Z'.
@ ED_MSG_SECOND
Current year using 4 digits (GMT)
@ ED_MSG_YEAR
4 byte timestamp + 8 bytes of pseudo-random data encoded in Base64
@ ED_MSG_HOUR
Current hour using a 24-hour clock (GMT)
@ ED_MSG_PID
PID of the running mutt process.
@ ED_MSG_RANDOM_1
3 bytes of pseudo-random data encoded in Base64
@ ED_MSG_MINUTE
Current month number (GMT)
@ ED_MSG_RANDOM_3
Current second of the minute (GMT)
@ ED_MSG_DAY
Current day of the month (GMT)
@ ED_MSG_HOSTNAME
$hostname
@ ED_MSG_MONTH
Current minute of the hour (GMT)
@ ED_MSG_RANDOM_12
1 byte of pseudo-random data hex encoded (example: '1b')
static int simple_command_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "sendmail" config variable - Implements ConfigDef::validator() -.
Definition config.c:102
static int smtp_auth_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "smtp_authenticators" config variable - Implements ConfigDef::validator() -.
Definition config.c:77
static int wrapheaders_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "wrap_headers" config variable - Implements ConfigDef::validator() -.
Definition config.c:59
int charset_slist_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the multiple "charset" config variables - Implements ConfigDef::validator() -.
Definition charset.c:84
Convenience wrapper for the library headers.
#define N_(a)
Definition message.h:32
#define _(a)
Definition message.h:28
static const struct ExpandoDefinition *const IndexFormatDefNoPadding
IndexFormatDefNoPadding - Index format definitions, without padding.
const struct ExpandoDefinition NntpFormatDef[]
Expando definitions.
Definition config.c:44
@ MUTT_NO
User answered 'No', or assume 'No'.
Definition quad.h:38
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
Definition quad.h:41
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
Definition quad.h:39
#define STAILQ_FOREACH(var, head, field)
Definition queue.h:390
bool sasl_auth_validator(const char *authenticator)
Validate an auth method against Cyrus SASL methods.
Definition sasl.c:131
struct ConfigDef SendVars[]
Config definitions for the send library.
Definition config.c:161
static const struct ExpandoDefinition MsgIdFormatDef[]
Expando definitions.
Definition config.c:140
static const struct ExpandoDefinition GreetingFormatDef[]
Expando definitions.
Definition config.c:125
bool smtp_auth_is_valid(const char *authenticator)
Check if string is a valid smtp authentication method.
Definition smtp.c:934
Send email to an SMTP server.
String manipulation buffer.
Definition buffer.h:36
const char * name
User-visible name.
Definition set.h:66
Definition of a format string.
Definition definition.h:43
A List node for strings.
Definition list.h:37
char * data
String.
Definition list.h:38
String list.
Definition slist.h:37
struct ListHead head
List containing values.
Definition slist.h:38
size_t count
Number of values in list.
Definition slist.h:39
#define D_SLIST_SEP_COLON
Slist items are colon-separated.
Definition types.h:112
#define D_INTERNAL_DEPRECATED
Config item shouldn't be used any more.
Definition types.h:88
#define D_STRING_COMMAND
A command.
Definition types.h:99
#define D_SLIST_ALLOW_EMPTY
Slist may be empty.
Definition types.h:116
#define D_L10N_STRING
String can be localised.
Definition types.h:82
#define D_PATH_FILE
Path is a file.
Definition types.h:104
@ 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
@ DT_EXPANDO
an expando
Definition types.h:34
@ DT_REGEX
regular expressions
Definition types.h:41
@ DT_PATH
a path to a file/directory
Definition types.h:39
#define D_SENSITIVE
Contains sensitive value, e.g. password.
Definition types.h:81
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition types.h:80
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition types.h:101