Config definitions for the send library.
160 {
161
163 "Abort sending the email if attachments are missing"
164 },
165 {
"abort_noattach_regex",
DT_REGEX,
IP "\\<(attach|attached|attachments?)\\>", 0, NULL,
166 "Regex to match text indicating attachments are expected"
167 },
169 "Abort creating the email if subject is missing"
170 },
172 "Abort the sending if the message hasn't been edited"
173 },
174 {
"allow_8bit",
DT_BOOL,
true, 0, NULL,
175 "Allow 8-bit messages, don't use quoted-printable or base64"
176 },
177 {
"ask_bcc",
DT_BOOL,
false, 0, NULL,
178 "Ask the user for the blind-carbon-copy recipients"
179 },
180 {
"ask_cc",
DT_BOOL,
false, 0, NULL,
181 "Ask the user for the carbon-copy recipients"
182 },
183 {
"ask_followup_to",
DT_BOOL,
false, 0, NULL,
184 "(nntp) Ask the user for follow-up groups before editing"
185 },
186 {
"ask_x_comment_to",
DT_BOOL,
false, 0, NULL,
187 "(nntp) Ask the user for the 'X-Comment-To' field before editing"
188 },
190 "When attaching files, use one of these character sets"
191 },
192
194 "Message to start a reply, 'On DATE, PERSON wrote:'"
195 },
196 {
"attribution_locale",
DT_STRING, 0, 0, NULL,
197 "Locale for dates in the attribution message"
198 },
200 "Suffix message to add after reply text"
201 },
202 {
"bounce_delivered",
DT_BOOL,
true, 0, NULL,
203 "Add 'Delivered-To' to bounced messages"
204 },
205 {
"confirm_empty_to",
DT_BOOL,
false, 0, NULL,
206 "Ask for a confirmation before sending an email with an empty To recipients list"
207 },
208 {
"content_type",
DT_STRING,
IP "text/plain", 0, NULL,
209 "Default 'Content-Type' for newly composed messages"
210 },
211 {
"crypt_auto_encrypt",
DT_BOOL,
false, 0, NULL,
212 "Automatically PGP encrypt all outgoing mail"
213 },
214 {
"crypt_auto_pgp",
DT_BOOL,
true, 0, NULL,
215 "Allow automatic PGP functions"
216 },
217 {
"crypt_auto_sign",
DT_BOOL,
false, 0, NULL,
218 "Automatically PGP sign all outgoing mail"
219 },
220 {
"crypt_auto_smime",
DT_BOOL,
true, 0, NULL,
221 "Allow automatic SMIME functions"
222 },
223 {
"crypt_reply_encrypt",
DT_BOOL,
true, 0, NULL,
224 "Encrypt replies to encrypted messages"
225 },
226 {
"crypt_reply_sign",
DT_BOOL,
false, 0, NULL,
227 "Sign replies to signed messages"
228 },
229 {
"crypt_reply_sign_encrypted",
DT_BOOL,
false, 0, NULL,
230 "Sign replies to encrypted messages"
231 },
233 "Request notification for message delivery or delay"
234 },
236 "What to send as a notification of message delivery or delay"
237 },
238 {
"empty_subject",
DT_STRING,
IP "Re: your mail", 0, NULL,
239 "Subject to use when replying to an email with none"
240 },
241 {
"encode_from",
DT_BOOL,
false, 0, NULL,
242 "Encode 'From ' as 'quote-printable' at the beginning of lines"
243 },
244 {
"fast_reply",
DT_BOOL,
false, 0, NULL,
245 "Don't prompt for the recipients and subject when replying/forwarding"
246 },
248 "Save sent message with all their attachments"
249 },
250 {
"fcc_before_send",
DT_BOOL,
false, 0, NULL,
251 "Save FCCs before sending the message"
252 },
253 {
"fcc_clear",
DT_BOOL,
false, 0, NULL,
254 "Save sent messages unencrypted and unsigned"
255 },
256 {
"followup_to",
DT_BOOL,
true, 0, NULL,
257 "Add the 'Mail-Followup-To' header is generated when sending mail"
258 },
260 "Forward attachments when forwarding a message"
261 },
262
264 "Prefix message for forwarded messages"
265 },
266
268 "Suffix message for forwarded messages"
269 },
270 {
"forward_decrypt",
DT_BOOL,
true, 0, NULL,
271 "Decrypt the message when forwarding it"
272 },
274 "Automatically start the editor when forwarding a message"
275 },
277 "printf-like format string to control the subject when forwarding a message"
278 },
279 {
"forward_references",
DT_BOOL,
false, 0, NULL,
280 "Set the 'In-Reply-To' and 'References' headers when forwarding a message"
281 },
283 "Greeting string added to the top of all messages"
284 },
285 {
"hdrs",
DT_BOOL,
true, 0, NULL,
286 "Add custom headers to outgoing mail"
287 },
288 {
"hidden_host",
DT_BOOL,
false, 0, NULL,
289 "Don't use the hostname, just the domain, when generating the message id"
290 },
292 "Honour the 'Mail-Followup-To' header when group replying"
293 },
294 {
"ignore_list_reply_to",
DT_BOOL,
false, 0, NULL,
295 "Ignore the 'Reply-To' header when using `<reply>` on a mailing list"
296 },
298 "Include a copy of the email that's being replied to"
299 },
301 "(nntp) External command to post news articles"
302 },
303 {
"me_too",
DT_BOOL,
false, 0, NULL,
304 "Remove the user's address from the list of recipients"
305 },
307 "Custom format for the Message-Id"
308 },
309 {
"mime_forward_decode",
DT_BOOL,
false, 0, NULL,
310 "Decode the forwarded message before attaching it"
311 },
313 "External command to determine the MIME type of an attachment"
314 },
315 {
"mime_type_query_first",
DT_BOOL,
false, 0, NULL,
316 "Run the `$mime_type_query_command` before the mime.types lookup"
317 },
318 {
"nm_record",
DT_BOOL,
false, 0, NULL,
319 "(notmuch) If the 'record' mailbox (sent mail) should be indexed"
320 },
321 {
"pgp_reply_inline",
DT_BOOL,
false, 0, NULL,
322 "Reply using old-style inline PGP messages (not recommended)"
323 },
324 {
"postpone_encrypt",
DT_BOOL,
false, 0, NULL,
325 "Self-encrypt postponed messages"
326 },
327 {
"postpone_encrypt_as",
DT_STRING, 0, 0, NULL,
328 "Fallback encryption key for postponed messages"
329 },
331 "Recall postponed mesaages when asked to compose a message"
332 },
333 {
"reply_self",
DT_BOOL,
false, 0, NULL,
334 "Really reply to yourself, when replying to your own email"
335 },
337 "Address to use as a 'Reply-To' header"
338 },
339 {
"reply_with_xorig",
DT_BOOL,
false, 0, NULL,
340 "Create 'From' header from 'X-Original-To' header"
341 },
342 {
"resume_draft_files",
DT_BOOL,
false, 0, NULL,
343 "Process draft files like postponed messages"
344 },
345 {
"reverse_name",
DT_BOOL,
false, 0, NULL,
346 "Set the 'From' from the address the email was sent to"
347 },
348 {
"reverse_real_name",
DT_BOOL,
true, 0, NULL,
349 "Set the 'From' from the full 'To' address the email was sent to"
350 },
352 "External command to send email"
353 },
354 {
"sendmail_wait",
DT_NUMBER, 0, 0, NULL,
355 "Time to wait for sendmail to finish"
356 },
357 {
"sig_dashes",
DT_BOOL,
true, 0, NULL,
358 "Insert '-- ' before the signature"
359 },
360 {
"sig_on_top",
DT_BOOL,
false, 0, NULL,
361 "Insert the signature before the quoted text"
362 },
364 "File containing a signature to append to all mail"
365 },
367 "(smtp) List of allowed authentication methods (colon-separated)"
368 },
370 "(smtp) External command to generate OAUTH refresh token"
371 },
373 "(smtp) Password for the SMTP server"
374 },
376 "(smtp) Url of the SMTP server"
377 },
379 "(smtp) Username for the SMTP server"
380 },
381 {
"use_8bit_mime",
DT_BOOL,
false, 0, NULL,
382 "Use 8-bit messages and ESMTP to send messages"
383 },
384 {
"use_envelope_from",
DT_BOOL,
false, 0, NULL,
385 "Set the envelope sender of the message"
386 },
387 {
"use_from",
DT_BOOL,
true, 0, NULL,
388 "Set the 'From' header for outgoing mail"
389 },
390 {
"user_agent",
DT_BOOL,
false, 0, NULL,
391 "Add a 'User-Agent' header to outgoing mail"
392 },
394 "Width to wrap headers in outgoing messages"
395 },
396 {
"write_bcc",
DT_BOOL,
false, 0, NULL,
397 "Write out the 'Bcc' field when preparing to send a mail"
398 },
399
400 {
"abort_noattach_regexp",
DT_SYNONYM,
IP "abort_noattach_regex",
IP "2021-03-21" },
403 {
"ask_follow_up",
DT_SYNONYM,
IP "ask_followup_to",
IP "2023-01-20" },
404 {
"attach_keyword",
DT_SYNONYM,
IP "abort_noattach_regex",
IP "2021-03-21" },
405 {
"attribution",
DT_SYNONYM,
IP "attribution_intro",
IP "2023-02-20" },
406 {
"crypt_autoencrypt",
DT_SYNONYM,
IP "crypt_auto_encrypt",
IP "2021-03-21" },
407 {
"crypt_autopgp",
DT_SYNONYM,
IP "crypt_auto_pgp",
IP "2021-03-21" },
408 {
"crypt_autosign",
DT_SYNONYM,
IP "crypt_auto_sign",
IP "2021-03-21" },
409 {
"crypt_autosmime",
DT_SYNONYM,
IP "crypt_auto_smime",
IP "2021-03-21" },
410 {
"crypt_replyencrypt",
DT_SYNONYM,
IP "crypt_reply_encrypt",
IP "2021-03-21" },
411 {
"crypt_replysign",
DT_SYNONYM,
IP "crypt_reply_sign",
IP "2021-03-21" },
412 {
"crypt_replysignencrypted",
DT_SYNONYM,
IP "crypt_reply_sign_encrypted",
IP "2021-03-21" },
413 {
"envelope_from",
DT_SYNONYM,
IP "use_envelope_from",
IP "2021-03-21" },
414 {
"forw_decrypt",
DT_SYNONYM,
IP "forward_decrypt",
IP "2021-03-21" },
415 {
"forw_format",
DT_SYNONYM,
IP "forward_format",
IP "2021-03-21" },
418 {
"pgp_autoencrypt",
DT_SYNONYM,
IP "crypt_auto_encrypt",
IP "2021-03-21" },
419 {
"pgp_autosign",
DT_SYNONYM,
IP "crypt_auto_sign",
IP "2021-03-21" },
420 {
"pgp_auto_traditional",
DT_SYNONYM,
IP "pgp_reply_inline",
IP "2021-03-21" },
421 {
"pgp_replyencrypt",
DT_SYNONYM,
IP "crypt_reply_encrypt",
IP "2021-03-21" },
422 {
"pgp_replyinline",
DT_SYNONYM,
IP "pgp_reply_inline",
IP "2021-03-21" },
423 {
"pgp_replysign",
DT_SYNONYM,
IP "crypt_reply_sign",
IP "2021-03-21" },
424 {
"pgp_replysignencrypted",
DT_SYNONYM,
IP "crypt_reply_sign_encrypted",
IP "2021-03-21" },
425 {
"post_indent_str",
DT_SYNONYM,
IP "attribution_trailer",
IP "2021-03-21" },
426 {
"post_indent_string",
DT_SYNONYM,
IP "attribution_trailer",
IP "2023-02-20" },
427 {
"reverse_realname",
DT_SYNONYM,
IP "reverse_real_name",
IP "2021-03-21" },
428 {
"use_8bitmime",
DT_SYNONYM,
IP "use_8bit_mime",
IP "2021-03-21" },
429
431 { NULL },
432
433};
static int simple_command_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "sendmail" config variable - Implements ConfigDef::validator() -.
static int smtp_auth_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "smtp_authenticators" config variable - Implements ConfigDef::validator() -.
static int wrapheaders_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "wrap_headers" config variable - Implements ConfigDef::validator() -.
int charset_slist_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the multiple "charset" config variables - Implements ConfigDef::validator() -.
static const struct ExpandoDefinition *const IndexFormatDefNoPadding
IndexFormatDefNoPadding - Index format definitions, without padding.
const struct ExpandoDefinition NntpFormatDef[]
Expando definitions.
@ MUTT_NO
User answered 'No', or assume 'No'.
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
static const struct ExpandoDefinition MsgIdFormatDef[]
Expando definitions.
static const struct ExpandoDefinition GreetingFormatDef[]
Expando definitions.
#define D_SLIST_SEP_COLON
Slist items are colon-separated.
#define D_INTERNAL_DEPRECATED
Config item shouldn't be used any more.
#define D_STRING_COMMAND
A command.
#define D_SLIST_ALLOW_EMPTY
Slist may be empty.
#define D_L10N_STRING
String can be localised.
#define D_PATH_FILE
Path is a file.
@ DT_SLIST
a list of strings
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
@ DT_SYNONYM
synonym for another variable
@ DT_REGEX
regular expressions
@ DT_PATH
a path to a file/directory
#define D_SENSITIVE
Contains sensitive value, e.g. password.
#define D_NOT_EMPTY
Empty strings are not allowed.
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.