-s, ~s: normalize NL/CR characters (Debian #419840)
[s-mailx.git] / cmd_tab.h
blobf40667e71fed4d4cc524571e94eccab24b1758b4
1 /*@ S-nail - a mail user agent derived from Berkeley Mail.
2 *@ This is included by ./lex_input.c and defines the command array.
4 * Copyright (c) 2000-2004 Gunnar Ritter, Freiburg i. Br., Germany.
5 * Copyright (c) 2012 - 2016 Steffen (Daode) Nurpmeso <steffen@sdaoden.eu>.
6 */
7 /*
8 * Copyright (c) 1980, 1993
9 * The Regents of the University of California. All rights reserved.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of the University nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
36 /* Some shorter aliases to be able to define a command in two lines */
37 #define MSGLIST ARG_MSGLIST
38 #define STRLIST ARG_STRLIST
39 #define RAWLIST ARG_RAWLIST
40 #define NOLIST ARG_NOLIST
41 #define NDMLIST ARG_NDMLIST
42 #define WYSHLIST ARG_WYSHLIST
43 # define WYRALIST ARG_WYRALIST
45 #define ARG_ARGMASK ARG_ARGMASK
46 #define A ARG_A
47 #define F ARG_F
48 #define G ARG_G
49 #define H ARG_H
50 #define I ARG_I
51 #define M ARG_M
52 #define P ARG_P
53 #define R ARG_R
54 #define S ARG_S
55 #define T ARG_T
56 #define V ARG_V
57 #define W ARG_W
58 #define O ARG_O
60 /* Note: the first command in here may NOT expand to an unsupported one! */
61 { "next", &c_next, (A | NDMLIST), 0, MMNDEL
62 DS(N_("Goes to the next message (-list) and prints it")) },
63 { "alias", &c_alias, (M | RAWLIST), 0, 1000
64 DS(N_("Show all (or <alias>), or (re)define <alias> to <:data:>")) },
65 { "print", &c_type, (A | MSGLIST), 0, MMNDEL
66 DS(N_("Type all messages of <msglist>, honouring `ignore' / `retain'")) },
67 { "type", &c_type, (A | MSGLIST), 0, MMNDEL
68 DS(N_("Type all messages of <msglist>, honouring `ignore' / `retain'")) },
69 { "Type", &c_Type, (A | MSGLIST), 0, MMNDEL
70 DS(N_("Like `type', but bypass `ignore' / `retain'")) },
71 { "Print", &c_Type, (A | MSGLIST), 0, MMNDEL
72 DS(N_("Like `print', but bypass `ignore' / `retain'")) },
73 { "visual", &c_visual, (A | I | S | MSGLIST), 0, MMNORM
74 DS(N_("Edit <msglist>")) },
75 { "top", &c_top, (A | MSGLIST), 0, MMNDEL
76 DS(N_("Type first *toplines* of all messages in <msglist>")) },
77 { "Top", &c_Top, (A | MSGLIST), 0, MMNDEL
78 DS(N_("Like `top', but bypass `ignore' / `retain'")) },
79 { "touch", &c_stouch, (A | W | MSGLIST), 0, MMNDEL
80 DS(N_("Mark <msglist> for saving in *mbox*")) },
81 { "preserve", &c_preserve, (A | S | W | MSGLIST), 0, MMNDEL
82 DS(N_("Save <msglist> in system mailbox instead of *MBOX*")) },
83 { "delete", &c_delete, (A | W | P | MSGLIST), 0, MMNDEL
84 DS(N_("Delete <msglist>")) },
85 { "dp", &c_deltype, (A | W | MSGLIST), 0, MMNDEL
86 DS(N_("Delete the current message, then type the next")) },
87 { "dt", &c_deltype, (A | W | MSGLIST), 0, MMNDEL
88 DS(N_("Delete the current message, then type the next")) },
89 { "undelete", &c_undelete, (A | P | MSGLIST), MDELETED,MMNDEL
90 DS(N_("Un`delete' <msglist>")) },
91 { "unset", &c_unset, (G | M | WYRALIST), 1, 1000
92 DS(N_("Unset <option-list>")) },
93 { "mail", &c_sendmail, (I | M | R | S | STRLIST), 0, 0
94 DS(N_("Compose mail; recipients may be given as arguments")) },
95 { "Mail", &c_Sendmail, (I | M | R | S | STRLIST), 0, 0
96 DS(N_("Like `mail', but derive filename from first recipient")) },
97 { "mbox", &c_mboxit, (A | W | MSGLIST), 0, 0
98 DS(N_("Indicate that <msglist> is to be stored in *MBOX*")) },
99 { "more", &c_more, (A | MSGLIST), 0, MMNDEL
100 DS(N_("Invoke the pager on the given messages")) },
101 { "page", &c_more, (A | MSGLIST), 0, MMNDEL
102 DS(N_("Invoke the pager on the given messages")) },
103 { "More", &c_More, (A | MSGLIST), 0, MMNDEL
104 DS(N_("Invoke the pager on the given messages")) },
105 { "Page", &c_More, (A | MSGLIST), 0, MMNDEL
106 DS(N_("Invoke the pager on the given messages")) },
107 { "unread", &c_unread, (A | MSGLIST), 0, MMNDEL
108 DS(N_("Mark <msglist> as not being read")) },
109 { "Unread", &c_unread, (A | MSGLIST), 0, MMNDEL
110 DS(N_("Mark <msglist> as not being read")) },
111 { "new", &c_unread, (A | MSGLIST), 0, MMNDEL
112 DS(N_("Mark <msglist> as not being read")) },
113 { "New", &c_unread, (A | MSGLIST), 0, MMNDEL
114 DS(N_("Mark <msglist> as not being read")) },
115 { "!", &c_shell, (S | STRLIST), 0, 0
116 DS(N_("Execute <shell-command>")) },
117 { "copy", &c_copy, (A | M | STRLIST), 0, 0
118 DS(N_("Copy <msglist>, but don't mark them for deletion")) },
119 { "Copy", &c_Copy, (A | M | S | STRLIST), 0, 0
120 DS(N_("Like `copy', but derive filename from first sender")) },
121 { "chdir", &c_chdir, (M | WYRALIST), 0, 1
122 DS(N_("Change CWD to the specified/the login directory")) },
123 { "cd", &c_chdir, (M | WYRALIST), 0, 1
124 DS(N_("Change working directory to the specified/the login directory")) },
125 { "save", &c_save, (A | STRLIST), 0, 0
126 DS(N_("Append <msglist> to <file>")) },
127 { "Save", &c_Save, (A | S | STRLIST), 0, 0
128 DS(N_("Like `save', but derive filename from first sender")) },
129 { "source", &c_source, (M | R | WYRALIST), 1, 1
130 DS(N_("Read commands from <file>")) },
131 { "source_if", &c_source_if, (M | R | WYRALIST), 1, 1
132 DS(N_("If <file> can be opened successfully, read commands from it")) },
133 { "set", &c_set, (G | M | WYRALIST), 0, 1000
134 DS(N_("Print all variables, or set (a) <variable>(s)")) },
135 { "shell", &c_dosh, (I | R | S | NOLIST), 0, 0
136 DS(N_("Invoke an interactive shell")) },
137 { "unalias", &c_unalias, (M | RAWLIST), 1, 1000
138 DS(N_("Un`alias' <name-list> (* for all)")) },
139 { "write", &c_write, (A | STRLIST), 0, 0
140 DS(N_("Write (append) to <file>")) },
141 { "from", &c_from, (A | MSGLIST), 0, MMNORM
142 DS(N_("Type (matching) headers of <msglist> (a search specification)")) },
143 { "search", &c_from, (A | MSGLIST), 0, MMNORM
144 DS(N_("Search for <msglist>, type matching headers")) },
145 { "file", &c_file, (T | M | WYRALIST), 0, 1
146 DS(N_("Open a new <mailbox> or show the current one")) },
147 { "followup", &c_followup, (A | I | R | S | MSGLIST), 0, MMNDEL
148 DS(N_("Like `reply', but derive filename from first sender")) },
149 { "followupall", &c_followupall, (A | I | R | S | MSGLIST), 0, MMNDEL
150 DS(N_("Like `reply', but derive filename from first sender")) },
151 { "followupsender", &c_followupsender, (A | I | R | MSGLIST), 0, MMNDEL
152 DS(N_("Like `Followup', but always reply to the sender only")) },
153 { "folder", &c_file, (T | M | WYRALIST), 0, 1
154 DS(N_("Open a new <mailbox> or show the current one")) },
155 { "folders", &c_folders, (T | M | WYRALIST), 0, 1
156 DS(N_("List mailboxes below the given or the global folder")) },
157 { "z", &c_scroll, (A | M | STRLIST), 0, 0
158 DS(N_("Scroll header display as indicated by the argument (0,-,+,$)")) },
159 { "Z", &c_Scroll, (A | M | STRLIST), 0, 0
160 DS(N_("Like `z', but continues to the next flagged message")) },
161 { "headers", &c_headers, (A | M | MSGLIST), 0, MMNDEL
162 DS(N_("Type a page of headers (with the first of <msglist> if given)")) },
163 { "help", &a_lex_c_help, (H | M | WYRALIST), 0, 1
164 DS(N_("Show help [[Option] for the given command]]")) },
165 { "?", &a_lex_c_help, (H | M | WYRALIST), 0, 1
166 DS(N_("Show help [[Option] for the given command]]")) },
167 { "=", &c_pdot, (A | NOLIST), 0, 0
168 DS(N_("Show current message number")) },
169 { "Reply", &c_Reply, (A | I | R | S | MSGLIST), 0, MMNDEL
170 DS(N_("Reply to originator, exclusively")) },
171 { "Respond", &c_Reply, (A | I | R | S | MSGLIST), 0, MMNDEL
172 DS(N_("Reply to originator, exclusively")) },
173 { "Followup", &c_Followup, (A | I | R | S | MSGLIST), 0, MMNDEL
174 DS(N_("Like `Reply', but derive filename from first sender")) },
175 { "reply", &c_reply, (A | I | R | S | MSGLIST), 0, MMNDEL
176 DS(N_("Reply to originator and recipients of <msglist>")) },
177 { "replyall", &c_replyall, (A | I | R | S | MSGLIST), 0, MMNDEL
178 DS(N_("Reply to originator and recipients of <msglist>")) },
179 { "replysender", &c_replysender, (A | I | R | S | MSGLIST), 0, MMNDEL
180 DS(N_("Reply to originator, exclusively")) },
181 { "respond", &c_reply, (A | I | R | S | MSGLIST), 0, MMNDEL
182 DS(N_("Reply to originators and recipients of <msglist>")) },
183 { "respondall", &c_replyall, (A | I | R | S | MSGLIST), 0, MMNDEL
184 DS(N_("Reply to originators and recipients of <msglist>")) },
185 { "respondsender", &c_replysender, (A | I | R | S | MSGLIST),0, MMNDEL
186 DS(N_("Reply to originator, exclusively")) },
187 { "Resend", &c_Resend, (A | R | STRLIST), 0, MMNDEL
188 DS(N_("Like `resend', but don't add Resent-* header lines")) },
189 { "Redirect", &c_Resend, (A | R | STRLIST), 0, MMNDEL
190 DS(N_("Like `resend', but don't add Resent-* header lines")) },
191 { "resend", &c_resend, (A | R | STRLIST), 0, MMNDEL
192 DS(N_("Resend <msglist> to <user>, add Resent-* header lines")) },
193 { "redirect", &c_resend, (A | R | STRLIST), 0, MMNDEL
194 DS(N_("Resend <msglist> to <user>, add Resent-* header lines")) },
195 { "Forward", &c_Forward, (A | R | STRLIST), 0, MMNDEL
196 DS(N_("Like `forward', but derive filename from <address>")) },
197 { "Fwd", &c_Forward, (A | R | STRLIST), 0, MMNDEL
198 DS(N_("Like `forward', but derive filename from <address>")) },
199 { "forward", &c_forward, (A | R | STRLIST), 0, MMNDEL
200 DS(N_("Forward <message> to <address>")) },
201 { "fwd", &c_forward, (A | R | STRLIST), 0, MMNDEL
202 DS(N_("Forward <message> to <address>")) },
203 { "edit", &c_editor, (G | A | I | S | MSGLIST), 0, MMNORM
204 DS(N_("Edit <msglist>")) },
205 { "echo", &c_echo, (G | M | WYSHLIST), 0, 1000
206 DS(N_("Echo the given arguments (wysh: after expanding them)")) },
207 { "quit", &a_lex_c_quit, NOLIST, 0, 0
208 DS(N_("Terminate session, saving messages as necessary")) },
209 { "list", &a_lex_c_list, (H | M | STRLIST), 0, 0
210 DS(N_("List all commands (with argument: in prefix search order)")) },
211 { "xit", &c_exit, (M | NOLIST), 0, 0
212 DS(N_("Immediately return to the shell without saving")) },
213 { "exit", &c_exit, (M | NOLIST), 0, 0
214 DS(N_("Immediately return to the shell without saving")) },
215 { "pipe", &c_pipe, (A | STRLIST), 0, MMNDEL
216 DS(N_("Pipe <msglist> to <command>, honouring `ignore' / `retain'")) },
217 { "|", &c_pipe, (A | STRLIST), 0, MMNDEL
218 DS(N_("Pipe <msglist> to <command>, honouring `ignore' / `retain'")) },
219 { "Pipe", &c_Pipe, (A | STRLIST), 0, MMNDEL
220 DS(N_("Like `pipe', but bypass `ignore' / `retain'")) },
221 { "size", &c_messize, (A | MSGLIST), 0, MMNDEL
222 DS(N_("Show size in bytes for <msglist>")) },
223 { "hold", &c_preserve, (A | S | W | MSGLIST), 0, MMNDEL
224 DS(N_("Save <msglist> in system mailbox instead of *MBOX*")) },
225 { "if", &c_if, (G | F | M | RAWLIST), 1, 1000
226 DS(N_("Part of the if..elif..else..endif statement")) },
227 { "else", &c_else, (G| F | M | RAWLIST), 0, 0
228 DS(N_("Part of the if..elif..else..endif statement")) },
229 { "elif", &c_elif, (G| F | M | RAWLIST), 1, 1000
230 DS(N_("Part of the if..elif..else..endif statement")) },
231 { "endif", &c_endif, (G| F | M | RAWLIST), 0, 0
232 DS(N_("Part of the if..elif..else..endif statement")) },
233 { "alternates", &c_alternates, (M | RAWLIST), 0, 1000
234 DS(N_("Show or define an alternate address list for the invoking user")) },
235 { "ignore", &c_ignore, (M | RAWLIST), 0, 1000
236 DS(N_("Add <header-list> to the ignored LIST, or show that list")) },
237 { "discard", &c_ignore, (M | RAWLIST), 0, 1000
238 DS(N_("Add <header-list> to the ignored LIST, or show that list")) },
239 { "retain", &c_retain, (M | RAWLIST), 0, 1000
240 DS(N_("Add <header-list> to retained list, or show that list")) },
241 { "headerpick", &c_headerpick, (M | WYSHLIST), 0, 1000
242 DS(N_("Header selection: [<context> [<type> [<action> <header-list>]]]"))},
243 { "saveignore", &c_saveignore, (O | M | RAWLIST), 0, 1000
244 DS(N_("Is to `save' what `ignore' is to `type' / `print'")) },
245 { "savediscard", &c_saveignore, (O | M | RAWLIST), 0, 1000
246 DS(N_("Is to `save' what `ignore' is to `type' / `print'")) },
247 { "saveretain", &c_saveretain, (O | M | RAWLIST), 0, 1000
248 DS(N_("Is to `save' what `retain' is to `type' / `print'")) },
249 { "unignore", &c_unignore, (M | RAWLIST), 0, 1000
250 DS(N_("Un`ignore' <header-list>")) },
251 { "unretain", &c_unretain, (M | RAWLIST), 0, 1000
252 DS(N_("Un`retain' <header-list>")) },
253 { "unsaveignore", &c_unsaveignore, (O | M | RAWLIST), 0, 1000
254 DS(N_("Un`saveignore' <header-list>")) },
255 { "unsaveretain", &c_unsaveretain, (O | M | RAWLIST), 0, 1000
256 DS(N_("Un`saveretain' <header-list>")) },
257 { "newmail", &c_newmail, (A | T | NOLIST), 0, 0
258 DS(N_("Check for new mail in current folder")) },
259 { "shortcut", &c_shortcut, (M | WYRALIST), 0, 1000
260 DS(N_("Define <shortcut>s and their <expansion>, or list shortcuts")) },
261 { "unshortcut", &c_unshortcut, (M | WYRALIST), 1, 1000
262 DS(N_("Delete <shortcut-list> (* for all)")) },
263 { "account", &c_account, (M | RAWLIST), 0, 1000
264 DS(N_("Create or select <account>, or list all accounts")) },
265 { "thread", &c_thread, (A | O | MSGLIST), 0, 0
266 DS(N_("Create threaded view of the current `file'")) },
267 { "unthread", &c_unthread, (A | O | MSGLIST), 0, 0
268 DS(N_("Disable sorted or threaded mode")) },
269 { "sort", &c_sort, (A | RAWLIST), 0, 1
270 DS(N_("Change sorting to: date,from,size,spam,status,subject,thread,to"))},
271 { "unsort", &c_unthread, (A | MSGLIST), 0, 0
272 DS(N_("Disable sorted or threaded mode")) },
273 { "flag", &c_flag, (A | M | MSGLIST), 0, 0
274 DS(N_("(Un)Flag <msglist> (for special attention)")) },
275 { "unflag", &c_unflag, (A | M | MSGLIST), 0, 0
276 DS(N_("(Un)Flag <msglist> (for special attention)")) },
277 { "answered", &c_answered, (A | M | MSGLIST), 0, 0
278 DS(N_("Mark the given <msglist> as answered")) },
279 { "unanswered", &c_unanswered, (A | M | MSGLIST), 0, 0
280 DS(N_("Un`answered' <msglist>")) },
281 { "draft", &c_draft, (A | M | MSGLIST), 0, 0
282 DS(N_("Mark <msglist> as draft")) },
283 { "undraft", &c_undraft, (A | M | MSGLIST), 0, 0
284 DS(N_("Un`draft' <msglist>")) },
285 { "define", &c_define, (M | RAWLIST), 0, 2
286 DS(N_("Define a <macro> or show the currently defined ones")) },
287 { "undefine", &c_undefine, (M | RAWLIST), 1, 1000
288 DS(N_("Un`define' all given <macros> (* for all)")) },
289 { "unaccount", &c_unaccount, (M | RAWLIST), 1, 1000
290 DS(N_("Delete all given <accounts> (* for all)")) },
291 { "call", &c_call, (M | RAWLIST), 0, 1
292 DS(N_("Call a macro")) },
293 { "~", &c_call, (M | RAWLIST), 0, 1
294 DS(N_("Call a macro")) },
295 { "move", &c_move, (A | M | STRLIST), 0, 0
296 DS(N_("Like `copy', but mark messages for deletion")) },
297 { "mv", &c_move, (A | M | STRLIST), 0, 0
298 DS(N_("Like `copy', but mark messages for deletion")) },
299 { "Move", &c_Move, (A | M | S | STRLIST), 0, 0
300 DS(N_("Like `move', but derive filename from first sender")) },
301 { "Mv", &c_Move, (A | M | S | STRLIST), 0, 0
302 DS(N_("Like `move', but derive filename from first sender")) },
303 { "noop", &c_noop, (A | M | RAWLIST), 0, 0
304 DS(N_("NOOP command if current `file' is accessed via network")) },
305 { "collapse", &c_collapse, (A | MSGLIST), 0, 0
306 DS(N_("Collapse thread views for <msglist>")) },
307 { "uncollapse", &c_uncollapse, (A | MSGLIST), 0, 0
308 DS(N_("Uncollapse <msglist> if in threaded view")) },
309 { "verify", &c_verify, (A | MSGLIST), 0, 0
310 DS(N_("Verify <msglist>")) },
311 { "decrypt", &c_decrypt, (A | M | STRLIST), 0, 0
312 DS(N_("Like `copy', but decrypt first, if encrypted")) },
313 { "Decrypt", &c_Decrypt, (A | M | S | STRLIST), 0, 0
314 DS(N_("Like `decrypt', but derive filename from first sender")) },
315 { "certsave", &c_certsave, (A | STRLIST), 0, 0
316 DS(N_("Save S/MIME certificates of <msglist> to <file>")) },
317 { "rename", &c_rename, (M | RAWLIST), 0, 2
318 DS(N_("Rename <existing-folder> to <new-folder>")) },
319 { "remove", &c_remove, (M | WYRALIST), 0, 1000
320 DS(N_("Remove the named folders")) },
321 { "show", &c_show, (A | MSGLIST), 0, MMNDEL
322 DS(N_("Like `type', but show raw message content of <msglist>")) },
323 { "Show", &c_show, (A | MSGLIST), 0, MMNDEL
324 DS(N_("Like `Type', but show raw message content of <msglist>")) },
325 { "seen", &c_seen, (A | M | MSGLIST), 0, MMNDEL
326 DS(N_("Mark <msglist> as seen")) },
327 { "Seen", &c_seen, (A | M | MSGLIST), 0, MMNDEL
328 DS(N_("Mark <msglist> as seen")) },
329 { "fwdignore", &c_fwdignore, (O | M | RAWLIST), 0, 1000
330 DS(N_("Control <header-list> to be ignored with `forward'")) },
331 { "fwddiscard", &c_fwdignore, (O | M | RAWLIST), 0, 1000
332 DS(N_("Control <header-list> to be ignored with `forward'")) },
333 { "fwdretain", &c_fwdretain, (O | M | RAWLIST), 0, 1000
334 DS(N_("Control <header-list> to be retained with `forward'")) },
335 { "unfwdignore", &c_unfwdignore, (O | M | RAWLIST), 0, 1000
336 DS(N_("Un`fwdignore' <header-list>")) },
337 { "unfwdretain", &c_unfwdretain, (O | M | RAWLIST), 0, 1000
338 DS(N_("Un`fwdretain' <header-list>")) },
339 { "mimetype", &c_mimetype, (M | WYRALIST), 0, 1000
340 DS(N_("(Load and) show all known MIME types, or define some")) },
341 { "unmimetype", &c_unmimetype, (M | WYRALIST), 1, 1000
342 DS(N_("Delete <type>s (reset, * for all; former reinitializes)")) },
343 { "spamrate", &c_spam_rate, (A | M | MSGLIST), 0, 0
344 DS(N_("Rate <msglist> via the spam detector")) },
345 { "spamham", &c_spam_ham, (A | M | MSGLIST), 0, 0
346 DS(N_("Teach the spam detector that <msglist> is ham")) },
347 { "spamspam", &c_spam_spam, (A | M | MSGLIST), 0, 0
348 DS(N_("Teach the spam detector that <msglist> is spam")) },
349 { "spamforget", &c_spam_forget, (A | M | MSGLIST), 0, 0
350 DS(N_("Force the spam detector to unlearn <msglist>")) },
351 { "spamset", &c_spam_set, (A | M | MSGLIST), 0, 0
352 DS(N_("Set the spam flag for each message in <msglist>")) },
353 { "spamclear", &c_spam_clear, (A | M | MSGLIST), 0, 0
354 DS(N_("Clear the spam flag for each message in <msglist>")) },
355 { "ghost", &a_lex_c_ghost, (M | WYRALIST), 0, 1000
356 DS(N_("Print or create <ghost> [<command>], or list all ghosts")) },
357 { "unghost", &a_lex_c_unghost, (M | WYRALIST), 1, 1000
358 DS(N_("Delete <ghost-list>")) },
359 { "localopts", &c_localopts, (H | M | RAWLIST), 1, 1
360 DS(N_("Inside `define' / `account': isolate modifications? <boolean>"))},
361 { "cwd", &c_cwd, (M | NOLIST), 0, 0
362 DS(N_("Print current working directory (CWD)")) },
363 { "pwd", &c_cwd, (M | NOLIST), 0, 0
364 DS(N_("Print current working directory (CWD)")) },
365 { "varshow", &c_varshow, (G | M | WYRALIST), 1, 1000
366 DS(N_("Show some informations about the given <variables>")) },
367 { "varedit", &c_varedit, (G | I | M | WYRALIST), 1, 1000
368 DS(N_("Edit the value(s) of (an) variable(s), or create them")) },
369 { "urlcodec", &c_urlcodec, (G | M | WYSHLIST), 2, 1000
370 DS(N_("URL percent <[path]enc[ode]|[path]dec[ode]> <string-list>")) },
371 { "urlencode", &c_urlencode, (G | M | WYRALIST), 1, 1000
372 DS(N_("Encode <string-list> for usage in an URL")) },
373 { "urldecode", &c_urldecode, (G | M | WYRALIST), 1, 1000
374 DS(N_("Decode the URL-encoded <URL-list> into strings")) },
375 { "File", &c_File, (T | M | WYRALIST), 0, 1
376 DS(N_("Open a new mailbox readonly, or show the current mailbox")) },
377 { "Folder", &c_File, (T | M | WYRALIST), 0, 1
378 DS(N_("Open a new mailbox readonly, or show the current mailbox")) },
379 { "mlist", &c_mlist, (M | WYRALIST), 0, 1000
380 DS(N_("Show all known mailing lists or define some")) },
381 { "unmlist", &c_unmlist, (M | WYRALIST), 1, 1000
382 DS(N_("Un`mlist' <name-list> (* for all)")) },
383 { "mlsubscribe", &c_mlsubscribe, (M | WYRALIST), 0, 1000
384 DS(N_("Show all mailing list subscriptions or define some")) },
385 { "unmlsubscribe", &c_unmlsubscribe, (M | WYRALIST), 1, 1000
386 DS(N_("Un`mlsubscribe' <name-list> (* for all)"))},
387 { "Lreply", &c_Lreply, (A | I | R | S | MSGLIST), 0, MMNDEL
388 DS(N_("Mailing-list reply to the given <msglist>")) },
389 { "errors", &c_errors, (H | I | M | RAWLIST), 0, 1
390 DS(N_("Either [<show>] or <clear> the error message ring")) },
391 { "dotmove", &c_dotmove, (A | STRLIST), 1, 1
392 DS(N_("Move the dot up <-> or down <+> by one")) },
393 { "customhdr", &c_customhdr, (M | WYSHLIST), 0, 1000
394 DS(N_("Show [all]/<header>, or define a custom <header> to <:data:>")) },
395 { "uncustomhdr", &c_uncustomhdr, (M | WYSHLIST), 1, 1000
396 DS(N_("Delete custom <:header:> (* for all)")) },
398 { "version", &a_lex_c_version, (H | M | NOLIST), 0, 0
399 DS(N_("Show the version and feature set of the program")) },
401 { "history", &c_history, (H | I | M | V | RAWLIST), 0, 1
402 DS(N_("<show> (default), <clear> or select <NO> from editor history")) },
403 { "bind", &c_bind, (M | STRLIST), 1, 1000
404 DS(N_("For <context> (base), [<show>] or bind <key[:,key:]> [<:data:>]"))},
405 { "unbind", &c_unbind, (M | STRLIST), 2, 2
406 DS(N_("Un`bind' <context> <key[:,key:]> (* for all)")) },
408 { "netrc", &c_netrc, (M | RAWLIST), 0, 1
409 DS(N_("[<show>], <load> or <clear> the .netrc cache")) },
411 { "colour", &c_colour, (M | WYSHLIST), 1, 4
412 DS(N_("Show colour settings of <type> (1, 8, 256, all) or define one")) },
413 { "uncolour", &c_uncolour, (M | WYSHLIST), 2, 3
414 DS(N_("Un`colour' <type> <mapping> (* for all) [<precondition>]")) },
416 { "environ", &c_environ, (G | M | WYSHLIST), 2, 1000
417 DS(N_("<link|set|unset> (an) environment <variable>(s)")) },
419 #ifdef HAVE_MEMORY_DEBUG
420 { "memtrace", &c_memtrace, (H | I | M | NOLIST), 0, 0
421 DS(N_("Trace current memory usage afap")) },
422 #endif
423 #ifdef HAVE_DEVEL
424 { "sigstate", &c_sigstate, (H | I | M | STRLIST), 0, 0
425 DS(N_("Show signal handler states")) },
426 #endif
428 # undef WYRALIST
429 #undef WYSHLIST
430 #undef MSGLIST
431 #undef STRLIST
432 #undef RAWLIST
433 #undef NOLIST
434 #undef NDMLIST
436 #undef ARG_ARGMASK
437 #undef A
438 #undef F
439 #undef G
440 #undef H
441 #undef I
442 #undef M
443 #undef P
444 #undef R
445 #undef T
446 #undef V
447 #undef W
448 #undef O
450 /* s-it-mode */