NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include <stdbool.h>
31
#include <stddef.h>
32
#include "
config/lib.h
"
33
#include "
expando/lib.h
"
34
35
extern
const
struct
ExpandoDefinition
IndexFormatDef
[];
36
40
struct
ConfigDef
AttachVars
[] = {
41
// clang-format off
42
{
"attach_save_dir"
,
DT_PATH
|
D_PATH_DIR
,
IP
"./"
, 0, NULL,
43
"Default directory where attachments are saved"
44
},
45
{
"attach_save_without_prompting"
,
DT_BOOL
,
false
, 0, NULL,
46
"If true, then don't prompt to save"
47
},
48
{
"attach_sep"
,
DT_STRING
,
IP
"\n"
, 0, NULL,
49
"Separator to add between saved/printed/piped attachments"
50
},
51
{
"attach_split"
,
DT_BOOL
,
true
, 0, NULL,
52
"Save/print/pipe tagged messages individually"
53
},
54
{
"bounce"
,
DT_QUAD
,
MUTT_ASKYES
, 0, NULL,
55
"Confirm before bouncing a message"
56
},
57
{
"count_alternatives"
,
DT_BOOL
,
false
, 0, NULL,
58
"Recurse inside multipart/alternatives while counting attachments"
59
},
60
{
"digest_collapse"
,
DT_BOOL
,
true
, 0, NULL,
61
"Hide the subparts of a multipart/digest"
62
},
63
{
"message_format"
,
DT_EXPANDO
|
D_NOT_EMPTY
,
IP
"%s"
,
IP
&
IndexFormatDef
, NULL,
64
"printf-like format string for listing attached messages"
65
},
66
{
"mime_forward"
,
DT_QUAD
,
MUTT_NO
, 0, NULL,
67
"Forward a message as a 'message/RFC822' MIME part"
68
},
69
{
"mime_forward_rest"
,
DT_QUAD
,
MUTT_YES
, 0, NULL,
70
"Forward all attachments, even if they can't be decoded"
71
},
72
73
{
"mime_fwd"
,
DT_SYNONYM
,
IP
"mime_forward"
,
IP
"2021-03-21"
},
74
{
"msg_format"
,
DT_SYNONYM
,
IP
"message_format"
,
IP
"2021-03-21"
},
75
76
{ NULL },
77
// clang-format on
78
};
AttachVars
struct ConfigDef AttachVars[]
Config definitions for the Attach library.
Definition
config.c:40
IndexFormatDef
const struct ExpandoDefinition IndexFormatDef[]
Expando definitions.
Definition
mutt_config.c:312
lib.h
Convenience wrapper for the config headers.
IP
#define IP
Definition
set.h:55
lib.h
Parse Expando string.
MUTT_NO
@ MUTT_NO
User answered 'No', or assume 'No'.
Definition
quad.h:38
MUTT_ASKYES
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
Definition
quad.h:41
MUTT_YES
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
Definition
quad.h:39
ConfigDef
Definition
set.h:65
ExpandoDefinition
Definition of a format string.
Definition
definition.h:49
D_PATH_DIR
#define D_PATH_DIR
Path is a directory.
Definition
types.h:103
DT_BOOL
@ DT_BOOL
boolean option
Definition
types.h:32
DT_QUAD
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition
types.h:40
DT_SYNONYM
@ DT_SYNONYM
synonym for another variable
Definition
types.h:45
DT_STRING
@ DT_STRING
a string
Definition
types.h:44
DT_EXPANDO
@ DT_EXPANDO
an expando
Definition
types.h:34
DT_PATH
@ DT_PATH
a path to a file/directory
Definition
types.h:39
D_NOT_EMPTY
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition
types.h:80