NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c File Reference

Config used by libcompose. More...

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

Go to the source code of this file.

Macros

#define ISPELL   "ispell"
 

Functions

bool config_init_compose (struct ConfigSet *cs)
 Register compose config variables - Implements module_init_config_t -.
 

Variables

static const struct ExpandoDefinition ComposeFormatDef []
 Expando definitions.
 
static struct ConfigDef ComposeVars []
 Config definitions for compose.
 

Detailed Description

Config used by libcompose.

Authors
  • Matthew Hughes
  • 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.

Macro Definition Documentation

◆ ISPELL

#define ISPELL   "ispell"

Definition at line 39 of file config.c.

Variable Documentation

◆ ComposeFormatDef

const struct ExpandoDefinition ComposeFormatDef[]
static
Initial value:
= {
{ "*", "padding-soft", ED_GLOBAL, ED_GLO_PADDING_SOFT, node_padding_parse },
{ ">", "padding-hard", ED_GLOBAL, ED_GLO_PADDING_HARD, node_padding_parse },
{ "|", "padding-eol", ED_GLOBAL, ED_GLO_PADDING_EOL, node_padding_parse },
{ "a", "attach-count", ED_COMPOSE, ED_COM_ATTACH_COUNT, NULL },
{ "h", "hostname", ED_GLOBAL, ED_GLO_HOSTNAME, NULL },
{ "l", "attach-size", ED_COMPOSE, ED_COM_ATTACH_SIZE, NULL },
{ "v", "version", ED_GLOBAL, ED_GLO_VERSION, NULL },
{ NULL, NULL, 0, -1, NULL }
}
@ ED_COM_ATTACH_COUNT
ComposeAttachData, num_attachments()
Definition: shared_data.h:54
@ ED_COM_ATTACH_SIZE
ComposeAttachData, cum_attachs_size()
Definition: shared_data.h:55
@ ED_COMPOSE
Compose ED_COM_ ExpandoDataCompose.
Definition: domain.h:39
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
Definition: domain.h:44
struct ExpandoNode * node_padding_parse(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Padding Expando - Implements ExpandoDefinition::parse() -.
Definition: node_padding.c:234
@ ED_GLO_PADDING_EOL
Padding to end-of-line.
Definition: uid.h:36
@ ED_GLO_VERSION
NeoMutt version.
Definition: uid.h:43
@ ED_GLO_PADDING_HARD
Hard Padding.
Definition: uid.h:37
@ ED_GLO_PADDING_SOFT
Soft Padding.
Definition: uid.h:38
@ ED_GLO_HOSTNAME
Local hostname.
Definition: uid.h:35

Expando definitions.

Config:

  • $compose_format

Definition at line 48 of file config.c.

◆ ComposeVars

struct ConfigDef ComposeVars[]
static
Initial value:
= {
{ "compose_confirm_detach_first", DT_BOOL, true, 0, NULL,
"Prevent the accidental deletion of the composed message"
},
{ "compose_format", DT_EXPANDO|D_L10N_STRING, IP N_("-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-"), IP &ComposeFormatDef, NULL,
"printf-like format string for the Compose panel's status bar"
},
{ "compose_show_user_headers", DT_BOOL, true, 0, NULL,
"Controls whether or not custom headers are shown in the compose envelope"
},
{ "copy", DT_QUAD, MUTT_YES, 0, NULL,
"Save outgoing emails to $record"
},
{ "edit_headers", DT_BOOL, false, 0, NULL,
"Let the user edit the email headers whilst editing an email"
},
{ "ispell", DT_STRING|D_STRING_COMMAND, IP ISPELL, 0, NULL,
"External command to perform spell-checking"
},
{ "postpone", DT_QUAD, MUTT_ASKYES, 0, NULL,
"Save messages to the `$postponed` folder"
},
{ NULL },
}
#define ISPELL
Definition: config.c:39
static const struct ExpandoDefinition ComposeFormatDef[]
Expando definitions.
Definition: config.c:48
#define IP
Definition: set.h:54
#define N_(a)
Definition: message.h:32
@ 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 D_STRING_COMMAND
A command.
Definition: types.h:99
#define D_L10N_STRING
String can be localised.
Definition: types.h:82
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition: types.h:41
@ DT_STRING
a string
Definition: types.h:45
@ DT_EXPANDO
an expando
Definition: types.h:34

Config definitions for compose.

Definition at line 64 of file config.c.