NeoMutt  2025-09-05-32-g1e0d0a
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
33{
41};
42
47{
48 bool is_set;
49
50 struct StringArray user_files;
52
53 struct StringArray commands;
55
58};
59
63struct CliHelp
64{
65 bool is_set;
66 bool help;
67 bool version;
68 bool license;
69
71};
72
76struct CliInfo
77{
78 bool is_set;
81 bool show_help;
83
84 struct StringArray alias_queries;
85 struct StringArray queries;
86};
87
91struct CliSend
92{
93 bool is_set;
96
97 struct StringArray attach;
98 struct StringArray bcc_list;
99 struct StringArray cc_list;
100 struct StringArray addresses;
101
105};
106
110struct CliTui
111{
112 bool is_set;
119
120 struct Buffer folder;
122};
123
128{
130 struct CliHelp help;
131 struct CliInfo info;
132 struct CliSend send;
133 struct CliTui tui;
134};
135
136struct CommandLine *command_line_new(void);
137void command_line_free(struct CommandLine **ptr);
138
139#endif /* MUTT_CLI_OBJECTS_H */
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:33
@ HM_SEND
Help about sending email options.
Definition: objects.h:38
@ HM_ALL
Help about all options.
Definition: objects.h:40
@ HM_HELP
Help about help.
Definition: objects.h:36
@ HM_INFO
Help about info options.
Definition: objects.h:37
@ HM_TUI
Help about starting the tui options.
Definition: objects.h:39
@ HM_NONE
No extra help.
Definition: objects.h:34
@ HM_SHARED
Help about shared config options.
Definition: objects.h:35
String manipulation buffer.
Definition: buffer.h:36
Help Mode Command Line options.
Definition: objects.h:64
bool version
-v Print version
Definition: objects.h:67
bool license
-vv Print license
Definition: objects.h:68
enum HelpMode mode
Display detailed help.
Definition: objects.h:70
bool help
-h Print help
Definition: objects.h:66
bool is_set
This struct has been used.
Definition: objects.h:65
Info Mode Command Line options.
Definition: objects.h:77
bool show_help
-O Show one-liner help
Definition: objects.h:81
bool is_set
This struct has been used.
Definition: objects.h:78
struct StringArray queries
-Q Query a config option
Definition: objects.h:85
struct StringArray alias_queries
-A Lookup an alias
Definition: objects.h:84
bool dump_config
-D Dump the config
Definition: objects.h:79
bool dump_changed
-DD Dump the changed config
Definition: objects.h:80
bool hide_sensitive
-S Hide sensitive config
Definition: objects.h:82
Send Mode Command Line options.
Definition: objects.h:92
struct Buffer draft_file
-H Use this draft file
Definition: objects.h:102
bool is_set
This struct has been used.
Definition: objects.h:93
struct Buffer include_file
-i Use this include file
Definition: objects.h:103
struct StringArray cc_list
-c Add a Cc:
Definition: objects.h:99
struct StringArray attach
-a Attach a file
Definition: objects.h:97
bool use_crypto
-C Use CLI crypto
Definition: objects.h:94
bool edit_infile
-E Edit the draft/include
Definition: objects.h:95
struct StringArray bcc_list
-b Add a Bcc:
Definition: objects.h:98
struct StringArray addresses
Send to these addresses.
Definition: objects.h:100
struct Buffer subject
-s Use this Subject:
Definition: objects.h:104
Shared Command Line options.
Definition: objects.h:47
struct Buffer log_level
-d Debug log level
Definition: objects.h:56
struct Buffer log_file
-l Debug log file
Definition: objects.h:57
struct StringArray commands
-e Run these commands
Definition: objects.h:53
bool is_set
This struct has been used.
Definition: objects.h:48
bool disable_system
-n Don't read the system config file
Definition: objects.h:51
struct StringArray user_files
-F Use these user config files
Definition: objects.h:50
struct Buffer mbox_type
-m Set the default Mailbox type
Definition: objects.h:54
TUI Mode Command Line options.
Definition: objects.h:111
bool read_only
-R Open Mailbox read-only
Definition: objects.h:113
bool start_any_mail
-z Check for Any Mail
Definition: objects.h:118
bool start_nntp
-G Open an NNTP Mailbox
Definition: objects.h:116
struct Buffer nntp_server
-g Open this NNTP Mailbox
Definition: objects.h:121
bool is_set
This struct has been used.
Definition: objects.h:112
struct Buffer folder
-f Open this Mailbox
Definition: objects.h:120
bool start_postponed
-p Open Postponed emails
Definition: objects.h:114
bool start_new_mail
-Z Check for New Mail
Definition: objects.h:117
bool start_browser
-y Open the Mailbox Browser
Definition: objects.h:115
Command Line options.
Definition: objects.h:128
struct CliSend send
Send Mode command line options.
Definition: objects.h:132
struct CliShared shared
Shared command line options.
Definition: objects.h:129
struct CliHelp help
Help Mode command line options.
Definition: objects.h:130
struct CliInfo info
Info Mode command line options.
Definition: objects.h:131
struct CliTui tui
Tui Mode command line options.
Definition: objects.h:133