NeoMutt  2025-01-09-144-gb44c67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
objects.h
Go to the documentation of this file.
1
23#ifndef MUTT_CLI_OBJECTS_H
24#define MUTT_CLI_OBJECTS_H
25
26#include <stdbool.h>
27#include "mutt/lib.h"
28
29ARRAY_HEAD(StringArray, char *);
30
35{
43};
44
49{
50 bool is_set;
51
52 struct StringArray user_files;
54
55 struct StringArray commands;
57
60};
61
65struct CliHelp
66{
67 bool is_set;
68 bool help;
69 bool version;
70 bool license;
71
73};
74
78struct CliInfo
79{
80 bool is_set;
83 bool show_help;
85
86 struct StringArray alias_queries;
87 struct StringArray queries;
88};
89
93struct CliSend
94{
95 bool is_set;
98
99 struct StringArray attach;
100 struct StringArray bcc_list;
101 struct StringArray cc_list;
102 struct StringArray addresses;
103
107};
108
112struct CliTui
113{
114 bool is_set;
121
122 struct Buffer folder;
124};
125
130{
132 struct CliHelp help;
133 struct CliInfo info;
134 struct CliSend send;
135 struct CliTui tui;
136};
137
138struct CommandLine *command_line_new(void);
139void command_line_free(struct CommandLine **ptr);
140
141#endif /* MUTT_CLI_OBJECTS_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
Convenience wrapper for the library headers.
struct CommandLine * command_line_new(void)
Create a new CommandLine.
Definition: objects.c:105
void command_line_free(struct CommandLine **ptr)
Free a CommandLine.
Definition: objects.c:114
HelpMode
Show detailed help.
Definition: objects.h:35
@ HM_SEND
Help about sending email options.
Definition: objects.h:40
@ HM_ALL
Help about all options.
Definition: objects.h:42
@ HM_HELP
Help about help.
Definition: objects.h:38
@ HM_INFO
Help about info options.
Definition: objects.h:39
@ HM_TUI
Help about starting the tui options.
Definition: objects.h:41
@ HM_NONE
No extra help.
Definition: objects.h:36
@ HM_SHARED
Help about shared config options.
Definition: objects.h:37
String manipulation buffer.
Definition: buffer.h:36
Help Mode Command Line options.
Definition: objects.h:66
bool version
-v Print version
Definition: objects.h:69
bool license
-vv Print license
Definition: objects.h:70
enum HelpMode mode
Display detailed help.
Definition: objects.h:72
bool help
-h Print help
Definition: objects.h:68
bool is_set
This struct has been used.
Definition: objects.h:67
Info Mode Command Line options.
Definition: objects.h:79
bool show_help
-O Show one-liner help
Definition: objects.h:83
bool is_set
This struct has been used.
Definition: objects.h:80
struct StringArray queries
-Q Query a config option
Definition: objects.h:87
struct StringArray alias_queries
-A Lookup an alias
Definition: objects.h:86
bool dump_config
-D Dump the config
Definition: objects.h:81
bool dump_changed
-DD Dump the changed config
Definition: objects.h:82
bool hide_sensitive
-S Hide sensitive config
Definition: objects.h:84
Send Mode Command Line options.
Definition: objects.h:94
struct Buffer draft_file
-H Use this draft file
Definition: objects.h:104
bool is_set
This struct has been used.
Definition: objects.h:95
struct Buffer include_file
-i Use this include file
Definition: objects.h:105
struct StringArray cc_list
-c Add a Cc:
Definition: objects.h:101
struct StringArray attach
-a Attach a file
Definition: objects.h:99
bool use_crypto
-C Use CLI crypto
Definition: objects.h:96
bool edit_infile
-E Edit the draft/include
Definition: objects.h:97
struct StringArray bcc_list
-b Add a Bcc:
Definition: objects.h:100
struct StringArray addresses
Send to these addresses.
Definition: objects.h:102
struct Buffer subject
-s Use this Subject:
Definition: objects.h:106
Shared Command Line options.
Definition: objects.h:49
struct Buffer log_level
-d Debug log level
Definition: objects.h:58
struct Buffer log_file
-l Debug log file
Definition: objects.h:59
struct StringArray commands
-e Run these commands
Definition: objects.h:55
bool is_set
This struct has been used.
Definition: objects.h:50
bool disable_system
-n Don't read the system config file
Definition: objects.h:53
struct StringArray user_files
-F Use these user config files
Definition: objects.h:52
struct Buffer mbox_type
-m Set the default Mailbox type
Definition: objects.h:56
TUI Mode Command Line options.
Definition: objects.h:113
bool read_only
-R Open Mailbox read-only
Definition: objects.h:115
bool start_any_mail
-z Check for Any Mail
Definition: objects.h:120
bool start_nntp
-G Open an NNTP Mailbox
Definition: objects.h:118
struct Buffer nntp_server
-g Open this NNTP Mailbox
Definition: objects.h:123
bool is_set
This struct has been used.
Definition: objects.h:114
struct Buffer folder
-f Open this Mailbox
Definition: objects.h:122
bool start_postponed
-p Open Postponed emails
Definition: objects.h:116
bool start_new_mail
-Z Check for New Mail
Definition: objects.h:119
bool start_browser
-y Open the Mailbox Browser
Definition: objects.h:117
Command Line options.
Definition: objects.h:130
struct CliSend send
Send Mode command line options.
Definition: objects.h:134
struct CliShared shared
Shared command line options.
Definition: objects.h:131
struct CliHelp help
Help Mode command line options.
Definition: objects.h:132
struct CliInfo info
Info Mode command line options.
Definition: objects.h:133
struct CliTui tui
Tui Mode command line options.
Definition: objects.h:135