42static void print_header(
const char *section,
const char *desc,
bool use_color)
45 printf(
"\033[1;4m%s\033[0m: %s\n", section, desc);
47 printf(
"%s: %s\n", section, desc);
60 printf(
"%s ",
_(
"NeoMutt has four modes of operation:"));
62 puts(
"\033[1;4mhelp\033[0m, \033[1;4minfo\033[0m, \033[1;4msend\033[0m, \033[1;4mtui\033[0m");
64 puts(
"help, info, send, tui");
66 puts(
_(
"The default mode, if no command line arguments are specified, is tui."));
70 print_header(
"shared",
_(
"Options that apply to all modes"), use_color);
71 puts(
_(
"neomutt -n Don't read system config file"));
72 puts(
_(
" -F <config> Use this user config file"));
73 puts(
_(
" -e <command> Run extra commands"));
74 puts(
_(
" -m <type> Set default mailbox type"));
75 puts(
_(
" -d <level> Set logging level (1..5)"));
76 puts(
_(
" -l <file> Set logging file"));
79 print_header(
"help",
_(
"Get command line help for NeoMutt"), use_color);
80 puts(
_(
"neomutt -h <mode> Detailed help for a mode"));
81 puts(
_(
" -v[v] Version or license"));
84 print_header(
"info",
_(
"Ask NeoMutt for config information"), use_color);
85 puts(
_(
"neomutt -A <alias> [...] Lookup email aliases"));
86 puts(
_(
" -D [-D] [-O] [-S] Dump the config"));
87 puts(
_(
" -Q <option> [...] [-O] [-S] Query config options"));
90 print_header(
"send",
_(
"Send an email from the command line"), use_color);
91 puts(
_(
"neomutt -a <file> [...] Attach files"));
92 puts(
_(
" -b <address> Add Bcc: address"));
93 puts(
_(
" -C Use crypto (signing/encryption)"));
94 puts(
_(
" -c <address> Add Cc: address"));
95 puts(
_(
" -E Edit message"));
96 puts(
_(
" -H <draft> Use draft email"));
97 puts(
_(
" -i <include> Include body file"));
98 puts(
_(
" -s <subject> Set Subject:"));
99 puts(
_(
" -- <address> [...] Add To: addresses"));
102 print_header(
"tui",
_(
"Start NeoMutt's TUI (Terminal User Interface)"), use_color);
103 puts(
_(
"neomutt Start NeoMutt's TUI"));
104 puts(
_(
" -f <mailbox> Open this mailbox"));
105 puts(
_(
" -G Open NNTP browser"));
106 puts(
_(
" -g <server> Use this NNTP server"));
107 puts(
_(
" -p Resume postponed email"));
108 puts(
_(
" -R Open mailbox read-only"));
109 puts(
_(
" -y Open mailbox browser"));
110 puts(
_(
" -Z Check for new mail"));
111 puts(
_(
" -z Check for any mail"));
115 printf(
"%s \033[1m%s\033[0m\n",
_(
"For detailed help, run:"),
"neomutt -h all");
117 printf(
"%s %s\n",
_(
"For detailed help, run:"),
"neomutt -h all");
127 print_header(
"shared",
_(
"Options that apply to all modes"), use_color);
130 puts(
_(
"By default NeoMutt loads one system and one user config file,"));
131 puts(
_(
"e.g. /etc/neomuttrc and ~/.neomuttrc"));
134 puts(
_(
" -n Don't read system config file"));
135 puts(
_(
" -F <config> Use this user config file"));
136 puts(
_(
" May be used multiple times"));
139 puts(
_(
"These options override the config:"));
140 puts(
_(
" -m <type> Set default mailbox type"));
141 puts(
_(
" May be: maildir, mbox, mh, mmdf"));
142 puts(
_(
" -e <command> Run extra commands"));
143 puts(
_(
" May be used multiple times"));
146 puts(
_(
"These logging options override the config:"));
147 puts(
_(
" -d <level> Set logging level"));
148 puts(
_(
" 0 (off), 1 (low) .. 5 (high)"));
149 puts(
_(
" -l <file> Set logging file"));
150 puts(
_(
" Default file '~/.neomuttdebug0'"));
154 printf(
"\033[1m%s\033[0m\n",
_(
"Examples:"));
156 printf(
"%s\n",
_(
"Examples:"));
159 puts(
_(
" neomutt -n"));
160 puts(
_(
" neomutt -F work.rc"));
161 puts(
_(
" neomutt -F work.rc -F colours.rc"));
164 puts(
_(
" neomutt -m maildir"));
165 puts(
_(
" neomutt -e 'set ask_cc = yes'"));
168 puts(
_(
" neomutt -d 2"));
169 puts(
_(
" neomutt -d 5 -l neolog"));
172 puts(
_(
"See also:"));
173 puts(
_(
"- Config files: https://neomutt.org/guide/configuration"));
183 print_header(
"help",
_(
"Get command line help for NeoMutt"), use_color);
187 puts(
_(
" -h Overview of command line options"));
188 puts(
_(
" -h <mode> Detailed help for: shared, help, info, send, tui, all"));
189 puts(
_(
" -v NeoMutt version and build parameters"));
190 puts(
_(
" -vv NeoMutt Copyright and license"));
194 printf(
"\033[1m%s\033[0m\n",
_(
"Examples:"));
196 printf(
"%s\n",
_(
"Examples:"));
199 puts(
_(
" neomutt -h info"));
200 puts(
_(
" neomutt -vv"));
210 print_header(
"info",
_(
"Ask NeoMutt for config information"), use_color);
214 puts(
_(
" -A <alias> [...] Lookup email aliases"));
215 puts(
_(
" Multiple aliases can be looked up (space-separated)"));
218 puts(
_(
" -D Dump all the config options"));
219 puts(
_(
" -D -D (or -DD) Like -D, but only show changed config"));
222 puts(
_(
" -Q <option> [...] Query config options"));
223 puts(
_(
" Multiple options can be looked up (space-separated)"));
225 puts(
_(
"Modify the -D and -Q options:"));
226 puts(
_(
" -O Add one-liner documentation"));
227 puts(
_(
" -S Hide the value of sensitive options"));
231 printf(
"\033[1m%s\033[0m\n",
_(
"Examples:"));
233 printf(
"%s\n",
_(
"Examples:"));
236 puts(
_(
" neomutt -A flatcap gahr"));
237 puts(
_(
" neomutt -D -O"));
238 puts(
_(
" neomutt -DD -S"));
239 puts(
_(
" neomutt -O -Q alias_format index_format"));
249 print_header(
"send",
_(
"Send an email from the command line"), use_color);
252 puts(
_(
"These options can supply everything NeoMutt needs to send an email."));
253 puts(
_(
"If any parts are missing, NeoMutt will start the TUI to ask for them."));
254 puts(
_(
"Addresses may be used before the options, or after a -- marker."));
255 puts(
_(
"Aliases may be used in place of addresses."));
259 puts(
_(
" -a <file> [...] Attach files"));
260 puts(
_(
" Terminated by -- or another option"));
261 puts(
_(
" -b <address> Add Bcc: address"));
262 puts(
_(
" -C Use crypto (signing/encryption)"));
263 puts(
_(
" Must be set up in the config file"));
264 puts(
_(
" -c <address> Add Cc: address"));
265 puts(
_(
" -E Edit message"));
266 puts(
_(
" (supplied by -H or -i)"));
267 puts(
_(
" -H <draft> Use draft email"));
268 puts(
_(
" Full email with headers and body"));
269 puts(
_(
" -i <include> Include body file"));
270 puts(
_(
" -s <subject> Set Subject:"));
271 puts(
_(
" -- <address> [...] Add To: addresses"));
275 printf(
"\033[1m%s\033[0m\n",
_(
"Examples:"));
277 printf(
"%s\n",
_(
"Examples:"));
280 puts(
_(
" neomutt flatcap -s 'Meeting' < meeting.txt"));
281 puts(
_(
" neomutt jim@example.com -c bob@example.com -s 'Party' -i party.txt"));
282 puts(
_(
" neomutt -s 'Receipts' -a receipt1.pdf receipt2.pdf -- rocco"));
283 puts(
_(
" cat secret.txt | neomutt gahr -s 'Secret' -C"));
293 print_header(
"tui",
_(
"Start NeoMutt's TUI (Terminal User Interface)"), use_color);
296 puts(
_(
"Running NeoMutt with no options will read the config and start the TUI."));
297 puts(
_(
"By default, it will open the Index Dialog with the $spool_file Mailbox."));
300 puts(
_(
"These options cause NeoMutt to check a mailbox for mail."));
301 puts(
_(
"If the condition isn't matched, NeoMutt exits."));
302 puts(
_(
" -p Resume postponed email"));
303 puts(
_(
" -Z Check for new mail"));
304 puts(
_(
" -z Check for any mail"));
308 puts(
_(
"These options change the starting behavior:"));
309 puts(
_(
" -f <mailbox> Open this mailbox"));
310 puts(
_(
" -G Open NNTP browser"));
311 puts(
_(
" -g <server> Use this NNTP server"));
312 puts(
_(
" -R Open mailbox read-only"));
313 puts(
_(
" -y Open mailbox browser"));
317 printf(
"\033[1m%s\033[0m\n",
_(
"Examples:"));
319 printf(
"%s\n",
_(
"Examples:"));
322 puts(
_(
" neomutt -f ~/mail -Z"));
323 puts(
_(
" neomutt -p"));
324 puts(
_(
" neomutt -y"));
373 printf(
"------------------------------------------------------------\n");
375 printf(
"\n------------------------------------------------------------\n");
377 printf(
"\n------------------------------------------------------------\n");
379 printf(
"\n------------------------------------------------------------\n");
381 printf(
"\n------------------------------------------------------------\n");
383 printf(
"\n------------------------------------------------------------\n");
Convenience wrapper for the library headers.
HelpMode
Show detailed help.
@ HM_SEND
Help about sending email options.
@ HM_ALL
Help about all options.
@ HM_HELP
Help about help.
@ HM_INFO
Help about info options.
@ HM_TUI
Help about starting the tui options.
@ HM_SHARED
Help about shared config options.
static void show_cli_tui(bool use_color)
Show Command Line Help for Tui.
static void show_cli_shared(bool use_color)
Show Command Line Help for Shared.
static void show_cli_info(bool use_color)
Show Command Line Help for Info.
static void show_cli_overview(bool use_color)
Display NeoMutt command line.
static void print_header(const char *section, const char *desc, bool use_color)
Print a section header.
void show_cli(enum HelpMode mode, bool use_color)
Show Instructions on how to run NeoMutt.
static void show_cli_help(bool use_color)
Show Command Line Help for Help.
static void show_cli_send(bool use_color)
Show Command Line Help for Send.
const char * mutt_make_version(void)
Generate the NeoMutt version string.
Display version and copyright about NeoMutt.