FixFix IMAP "+" expansion and more (Predrag Punosevac)
[s-mailx.git] / cmd_tab.h
blobec459f4d977437be13c941a8166e12b84b858658
1 /*@ S-nail - a mail user agent derived from Berkeley Mail.
2 *@ This header is included by ./lex.c and defines the command array content.
4 * Copyright (c) 2000-2004 Gunnar Ritter, Freiburg i. Br., Germany.
5 * Copyright (c) 2012 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
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 ECHOLIST ARG_ECHOLIST
43 #define ARG_ARGMASK ARG_ARGMASK
44 #define A ARG_A
45 #define F ARG_F
46 #define H ARG_H
47 #define I ARG_I
48 #define M ARG_M
49 #define P ARG_P
50 #define R ARG_R
51 #define T ARG_T
52 #define V ARG_V
53 #define W ARG_W
54 #define O ARG_O
56 #ifdef HAVE_DOCSTRINGS
57 # define DS(S) , S
58 #else
59 # define DS(S)
60 #endif
62 /* Note: the first command in here may NOT expand to an unsupported one! */
63 { "next", &c_next, (A | NDMLIST), 0, MMNDEL
64 DS(N_("Goes to the next message (-list) and prints it")) },
65 { "alias", &c_alias, (M | RAWLIST), 0, 1000
66 DS(N_("Show all or the specified <alias>(es), or (re)define one")) },
67 { "print", &c_type, (A | MSGLIST), 0, MMNDEL
68 DS(N_("Type each message of <message-list> on the terminal")) },
69 { "type", &c_type, (A | MSGLIST), 0, MMNDEL
70 DS(N_("Type each message of <message-list> on the terminal")) },
71 { "Type", &c_Type, (A | MSGLIST), 0, MMNDEL
72 DS(N_("Like \"print\", but prints all headers and parts")) },
73 { "Print", &c_Type, (A | MSGLIST), 0, MMNDEL
74 DS(N_("Like \"print\", but prints all headers and parts")) },
75 { "visual", &c_visual, (A | I | MSGLIST), 0, MMNORM
76 DS(N_("Edit <message-list>")) },
77 { "top", &c_top, (A | MSGLIST), 0, MMNDEL
78 DS(N_("Print top few lines of <message-list>")) },
79 { "touch", &c_stouch, (A | W | MSGLIST), 0, MMNDEL
80 DS(N_("Mark <message-list> for saving in *mbox*")) },
81 { "preserve", &c_preserve, (A | W | MSGLIST), 0, MMNDEL
82 DS(N_("Save <message-list> in system mailbox instead of *MBOX*")) },
83 { "delete", &c_delete, (A | W | P | MSGLIST), 0, MMNDEL
84 DS(N_("Delete <message-list>")) },
85 { "dp", &c_deltype, (A | W | MSGLIST), 0, MMNDEL
86 DS(N_("Delete the current message, then print the next")) },
87 { "dt", &c_deltype, (A | W | MSGLIST), 0, MMNDEL
88 DS(N_("Delete the current message, then print the next")) },
89 { "undelete", &c_undelete, (A | P | MSGLIST), MDELETED,MMNDEL
90 DS(N_("Un\"delete\" <message-list>")) },
91 { "unset", &c_unset, (H | M | RAWLIST), 1, 1000
92 DS(N_("Unset <option-list>")) },
93 { "unsetenv", &c_unsetenv, (H | M | RAWLIST), 1, 1000
94 DS(N_("Unset <option-list>, also in the program environment")) },
95 { "mail", &c_sendmail, (R | M | I | STRLIST), 0, 0
96 DS(N_("Compose mail; recipients may be given as arguments")) },
97 { "Mail", &c_Sendmail, (R | M | I | STRLIST), 0, 0
98 DS(N_("Like \"mail\", but derive filename from first recipient")) },
99 { "mbox", &c_mboxit, (A | W | MSGLIST), 0, 0
100 DS(N_("Indicate that <message-list> is to be stored in *mbox*")) },
101 { "more", &c_more, (A | MSGLIST), 0, MMNDEL
102 DS(N_("Invoke the pager on the given messages")) },
103 { "page", &c_more, (A | MSGLIST), 0, MMNDEL
104 DS(N_("Invoke the pager on the given messages")) },
105 { "More", &c_More, (A | MSGLIST), 0, MMNDEL
106 DS(N_("Invoke the pager on the given messages")) },
107 { "Page", &c_More, (A | MSGLIST), 0, MMNDEL
108 DS(N_("Invoke the pager on the given messages")) },
109 { "unread", &c_unread, (A | MSGLIST), 0, MMNDEL
110 DS(N_("Mark <message-list> as not being read")) },
111 { "Unread", &c_unread, (A | MSGLIST), 0, MMNDEL
112 DS(N_("Mark <message-list> as not being read")) },
113 { "new", &c_unread, (A | MSGLIST), 0, MMNDEL
114 DS(N_("Mark <message-list> as not being read")) },
115 { "New", &c_unread, (A | MSGLIST), 0, MMNDEL
116 DS(N_("Mark <message-list> as not being read")) },
117 { "!", &c_shell, (I | STRLIST), 0, 0 /* XXX I? */
118 DS(N_("Execute <shell-command>")) },
119 { "copy", &c_copy, (A | M | STRLIST), 0, 0
120 DS(N_("Copy <message-list>, but don't mark them for deletion")) },
121 { "Copy", &c_Copy, (A | M | STRLIST), 0, 0
122 DS(N_("Like \"copy\", but derive filename from first sender")) },
123 { "chdir", &c_chdir, (M | RAWLIST), 0, 1
124 DS(N_("Change CWD to the specified/the login directory")) },
125 { "cd", &c_chdir, (M | RAWLIST), 0, 1
126 DS(N_("Change CWD to the specified/the login directory")) },
127 { "save", &c_save, (A | STRLIST), 0, 0
128 DS(N_("Append <message-list> to <file>")) },
129 { "Save", &c_Save, (A | STRLIST), 0, 0
130 DS(N_("Like \"save\", but derive filename from first sender")) },
131 { "source", &c_source, (M | R | RAWLIST), 1, 1
132 DS(N_("Read commands from <file>")) },
133 { "source_if", &c_source_if, (M | R | RAWLIST), 1, 1
134 DS(N_("If <file> can be opened successfully, read commands from it")) },
135 { "set", &c_set, (M | RAWLIST), 0, 1000
136 DS(N_("Print all variables, or set (a) <variable>(s)")) },
137 { "setenv", &c_setenv, (M | RAWLIST), 1, 1000
138 DS(N_("Set (a) <variable>(s) and export into the program environment")) },
139 { "shell", &c_dosh, (I | NOLIST), 0, 0
140 DS(N_("Invoke an interactive shell")) },
141 { "unalias", &c_unalias, (M | RAWLIST), 1, 1000
142 DS(N_("Un\"alias\" <name-list> (\"*\" for all)")) },
143 { "write", &c_write, (A | STRLIST), 0, 0
144 DS(N_("Write (append) to <file>")) },
145 { "from", &c_from, (A | MSGLIST), 0, MMNORM
146 DS(N_("Show message headers of <message-list>")) },
147 { "file", &c_file, (T | M | RAWLIST), 0, 1
148 DS(N_("Open a new <mailbox> or show the current one")) },
149 { "followup", &c_followup, (A | R | I | MSGLIST), 0, MMNDEL
150 DS(N_("Like \"reply\", but derive filename from first sender")) },
151 { "followupall", &c_followupall, (A | R | I | MSGLIST), 0, MMNDEL
152 DS(N_("Like \"reply\", but derive filename from first sender")) },
153 { "followupsender", &c_followupsender, (A | R | I | MSGLIST), 0, MMNDEL
154 DS(N_("Like \"Followup\", but always reply to the sender only")) },
155 { "folder", &c_file, (T | M | RAWLIST), 0, 1
156 DS(N_("Open a new <mailbox> or show the current one")) },
157 { "folders", &c_folders, (T | M | RAWLIST), 0, 1
158 DS(N_("List mailboxes below the given or the global folder")) },
159 { "z", &c_scroll, (A | M | STRLIST), 0, 0
160 DS(N_("Scroll header display as indicated by the argument (0,-,+,$)")) },
161 { "Z", &c_Scroll, (A | M | STRLIST), 0, 0
162 DS(N_("Like \"z\", but continues to the next flagged message")) },
163 { "headers", &c_headers, (A | M | MSGLIST), 0, MMNDEL
164 DS(N_("Print a page of headers (with the first of <message> if given)")) },
165 { "help", &c_help, (H | M | RAWLIST), 0, 1
166 DS(N_("Show command help (for the given one)")) },
167 { "?", &c_help, (H | M | RAWLIST), 0, 1
168 DS(N_("Show command help (for the given one)")) },
169 { "=", &c_pdot, (A | NOLIST), 0, 0
170 DS(N_("Show current message number")) },
171 { "Reply", &c_Reply, (A | R | I | MSGLIST), 0, MMNDEL
172 DS(N_("Reply to originator, exclusively")) },
173 { "Respond", &c_Reply, (A | R | I | MSGLIST), 0, MMNDEL
174 DS(N_("Reply to originator, exclusively")) },
175 { "Followup", &c_Followup, (A | R | I | MSGLIST), 0, MMNDEL
176 DS(N_("Like \"Reply\", but derive filename from first sender")) },
177 { "reply", &c_reply, (A | R | I | MSGLIST), 0, MMNDEL
178 DS(N_("Reply to originator and recipients of <message-list>")) },
179 { "replyall", &c_replyall, (A | R | I | MSGLIST), 0, MMNDEL
180 DS(N_("Reply to originator and recipients of <message-list>")) },
181 { "replysender", &c_replysender, (A | R | I | MSGLIST), 0, MMNDEL
182 DS(N_("Reply to originator, exclusively")) },
183 { "respond", &c_reply, (A | R | I | MSGLIST), 0, MMNDEL
184 DS(N_("Reply to originators and recipients of <message-list>")) },
185 { "respondall", &c_replyall, (A | R | I | MSGLIST), 0, MMNDEL
186 DS(N_("Reply to originators and recipients of <message-list>")) },
187 { "respondsender", &c_replysender, (A | R | I | MSGLIST),0, MMNDEL
188 DS(N_("Reply to originator, exclusively")) },
189 { "Resend", &c_Resend, (A | R | STRLIST), 0, MMNDEL
190 DS(N_("Like \"resend\", but don't add Resent-* headers")) },
191 { "Redirect", &c_Resend, (A | R | STRLIST), 0, MMNDEL
192 DS(N_("Like \"resend\", but don't add Resent-* headers")) },
193 { "resend", &c_resend, (A | R | STRLIST), 0, MMNDEL
194 DS(N_("Resend <message-list> to <user>, add Resent-* headers")) },
195 { "redirect", &c_resend, (A | R | STRLIST), 0, MMNDEL
196 DS(N_("Resend <message-list> to <user>, add Resent-* headers")) },
197 { "Forward", &c_Forward, (A | R | STRLIST), 0, MMNDEL
198 DS(N_("Like \"forward\", but derive filename from <address>")) },
199 { "Fwd", &c_Forward, (A | R | STRLIST), 0, MMNDEL
200 DS(N_("Like \"forward\", but derive filename from <address>")) },
201 { "forward", &c_forward, (A | R | STRLIST), 0, MMNDEL
202 DS(N_("Forward <message> to <address>")) },
203 { "fwd", &c_forward, (A | R | STRLIST), 0, MMNDEL
204 DS(N_("Forward <message> to <address>")) },
205 { "edit", &c_editor, (A | I | MSGLIST), 0, MMNORM
206 DS(N_("Edit <message-list>")) },
207 { "echo", &c_echo, (H | M | ECHOLIST), 0, 1000
208 DS(N_("Echo given arguments")) },
209 { "quit", &_c_quit, NOLIST, 0, 0
210 DS(N_("Terminate session, saving messages as necessary")) },
211 { "list", &_c_pcmdlist, (H | M | NOLIST), 0, 0
212 DS(N_("List all available commands")) },
213 { "xit", &c_rexit, (M | NOLIST), 0, 0
214 DS(N_("Immediate return to the shell without saving")) },
215 { "exit", &c_rexit, (M | NOLIST), 0, 0
216 DS(N_("Immediate return to the shell without saving")) },
217 { "pipe", &c_pipe, (A | STRLIST), 0, MMNDEL
218 DS(N_("Pipe <message-list> to <command>")) },
219 { "|", &c_pipe, (A | STRLIST), 0, MMNDEL
220 DS(N_("Pipe <message-list> to <command>")) },
221 { "Pipe", &c_Pipe, (A | STRLIST), 0, MMNDEL
222 DS(N_("Like \"pipe\", but pipes all headers and parts")) },
223 { "size", &c_messize, (A | MSGLIST), 0, MMNDEL
224 DS(N_("Show size in characters for <message-list>")) },
225 { "hold", &c_preserve, (A | W | MSGLIST), 0, MMNDEL
226 DS(N_("Save <message-list> in system mailbox instead of *MBOX*")) },
227 { "if", &c_if, (F | M | RAWLIST), 1, 1000
228 DS(N_("Part of the if..elif..else..endif statement")) },
229 { "else", &c_else, (F | M | RAWLIST), 0, 0
230 DS(N_("Part of the if..elif..else..endif statement")) },
231 { "elif", &c_elif, (F | M | RAWLIST), 1, 1000
232 DS(N_("Part of the if..elif..else..endif statement")) },
233 { "endif", &c_endif, (F | M | RAWLIST), 0, 0
234 DS(N_("Part of the if..elif..else..endif statement")) },
235 { "alternates", &c_alternates, (M | RAWLIST), 0, 1000
236 DS(N_("Show or define an alternate list for the invoking user")) },
237 { "ignore", &c_igfield, (M | RAWLIST), 0, 1000
238 DS(N_("Add <header-fields> to the ignored LIST, or show that list")) },
239 { "discard", &c_igfield, (M | RAWLIST), 0, 1000
240 DS(N_("Add <header-fields> to the ignored LIST, or show that list")) },
241 { "retain", &c_retfield, (M | RAWLIST), 0, 1000
242 DS(N_("Add <header-fields> to retained list, or show that list")) },
243 { "saveignore", &c_saveigfield, (M | RAWLIST), 0, 1000
244 DS(N_("Is to \"save\" what \"ignore\" is to \"type\"/\"print\"")) },
245 { "savediscard", &c_saveigfield, (M | RAWLIST), 0, 1000
246 DS(N_("Is to \"save\" what \"ignore\" is to \"type\"/\"print\"")) },
247 { "saveretain", &c_saveretfield, (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-fields>")) },
251 { "unretain", &c_unretain, (M | RAWLIST), 0, 1000
252 DS(N_("Un\"retain\" <header-fields>")) },
253 { "unsaveignore", &c_unsaveignore, (M | RAWLIST), 0, 1000
254 DS(N_("Un\"saveignore\" <header-fields>")) },
255 { "unsaveretain", &c_unsaveretain, (M | RAWLIST), 0, 1000
256 DS(N_("Un\"saveretain\" <header-fields>")) },
257 { "inc", &c_newmail, (A | T | NOLIST), 0, 0
258 DS(N_("Check for new mail in current folder")) },
259 { "newmail", &c_newmail, (A | T | NOLIST), 0, 0
260 DS(N_("Check for new mail in current folder")) },
261 { "shortcut", &c_shortcut, (M | RAWLIST), 0, 1000
262 DS(N_("Define <shortcut>s and their <expansion>, or list shortcuts")) },
263 { "unshortcut", &c_unshortcut, (M | RAWLIST), 1, 1000
264 DS(N_("Delete <shortcut-list> (\"*\" for all)")) },
265 { "imap", &c_imap_imap, (A | STRLIST), 0, 1000
266 DS(N_("Send command strings directly to the IMAP server")) },
267 { "account", &c_account, (M | RAWLIST), 0, 1000
268 DS(N_("Create or select <account>, or list all accounts")) },
269 { "thread", &c_thread, (A | O | MSGLIST), 0, 0
270 DS(N_("Create threaded view of current \"folder\"")) },
271 { "unthread", &c_unthread, (A | O | MSGLIST), 0, 0
272 DS(N_("Disable sorted or threaded mode")) },
273 { "connect", &c_connect, (A | NOLIST), 0, 0
274 DS(N_("If disconnected, connect to IMAP mailbox")) },
275 { "disconnect", &c_disconnect, (A | NDMLIST), 0, 0
276 DS(N_("If connected, disconnect from IMAP mailbox")) },
277 { "sort", &c_sort, (A | RAWLIST), 0, 1
278 DS(N_("Change sorting: date,from,size,spam,status,subject,thread,to")) },
279 { "unsort", &c_unthread, (A | MSGLIST), 0, 0
280 DS(N_("Disable sorted or threaded mode")) },
281 { "cache", &c_cache, (A | MSGLIST), 0, 0
282 DS(N_("Read specified <message list> into the IMAP cache")) },
283 { "flag", &c_flag, (A | M | MSGLIST), 0, 0
284 DS(N_("(Un)Flag <message-list> (for special attention)")) },
285 { "unflag", &c_unflag, (A | M | MSGLIST), 0, 0
286 DS(N_("(Un)Flag <message-list> (for special attention)")) },
287 { "answered", &c_answered, (A | M | MSGLIST), 0, 0
288 DS(N_("Mark the given <message list> as \"answered\"")) },
289 { "unanswered", &c_unanswered, (A | M | MSGLIST), 0, 0
290 DS(N_("Un\"answered\" <message-list>")) },
291 { "draft", &c_draft, (A | M | MSGLIST), 0, 0
292 DS(N_("Mark <message-list> as draft")) },
293 { "undraft", &c_undraft, (A | M | MSGLIST), 0, 0
294 DS(N_("Un\"draft\" <message-list>")) },
295 { "define", &c_define, (M | RAWLIST), 0, 2
296 DS(N_("Define a <macro> or show the currently defined ones")) },
297 { "undefine", &c_undefine, (M | RAWLIST), 0, 1000
298 DS(N_("Un\"define\" all given <macros>")) },
299 { "unaccount", &c_unaccount, (M | RAWLIST), 0, 1000
300 DS(N_("Delete all given <accounts>")) },
301 { "call", &c_call, (M | RAWLIST), 0, 1
302 DS(N_("Call a macro")) },
303 { "~", &c_call, (M | RAWLIST), 0, 1
304 DS(N_("Call a macro")) },
305 { "move", &c_move, (A | M | STRLIST), 0, 0
306 DS(N_("Like \"copy\", but mark messages for deletion")) },
307 { "mv", &c_move, (A | M | STRLIST), 0, 0
308 DS(N_("Like \"copy\", but mark messages for deletion")) },
309 { "Move", &c_Move, (A | M | STRLIST), 0, 0
310 DS(N_("Like \"move\", but derive filename from first sender")) },
311 { "Mv", &c_Move, (A | M | STRLIST), 0, 0
312 DS(N_("Like \"move\", but derive filename from first sender")) },
313 { "noop", &c_noop, (A | M | RAWLIST), 0, 0
314 DS(N_("NOOP command if IMAP or POP folder; else noop")) },
315 { "collapse", &c_collapse, (A | MSGLIST), 0, 0
316 DS(N_("Collapse thread views for <message-list>")) },
317 { "uncollapse", &c_uncollapse, (A | MSGLIST), 0, 0
318 DS(N_("Uncollapse <message-list> if in threaded view")) },
319 { "verify", &c_verify, (A | MSGLIST), 0, 0
320 DS(N_("Verify <message-list>")) },
321 { "decrypt", &c_decrypt, (A | M | STRLIST), 0, 0
322 DS(N_("Like \"copy\", but decrypt first, if encrypted")) },
323 { "Decrypt", &c_Decrypt, (A | M | STRLIST), 0, 0
324 DS(N_("Like \"decrypt\", but derive filename from first sender")) },
325 { "certsave", &c_certsave, (A | STRLIST), 0, 0
326 DS(N_("Save S/MIME certificates of <message-list> to <file>")) },
327 { "rename", &c_rename, (M | RAWLIST), 0, 2
328 DS(N_("Rename <existing-folder> to <new-folder>")) },
329 { "remove", &c_remove, (M | RAWLIST), 0, 1000
330 DS(N_("Remove the named folders")) },
331 { "show", &c_show, (A | MSGLIST), 0, MMNDEL
332 DS(N_("Like \"print\", but show raw message content")) },
333 { "Show", &c_show, (A | MSGLIST), 0, MMNDEL
334 DS(N_("Like \"print\", but show raw message content")) },
335 { "seen", &c_seen, (A | M | MSGLIST), 0, MMNDEL
336 DS(N_("Mark <message-list> as seen")) },
337 { "Seen", &c_seen, (A | M | MSGLIST), 0, MMNDEL
338 DS(N_("Mark <message-list> as seen")) },
339 { "fwdignore", &c_fwdigfield, (M | RAWLIST), 0, 1000
340 DS(N_("Which header fields are to be ignored with \"forward\"")) },
341 { "fwddiscard", &c_fwdigfield, (M | RAWLIST), 0, 1000
342 DS(N_("Which header fields are to be ignored with \"forward\"")) },
343 { "fwdretain", &c_fwdretfield, (M | RAWLIST), 0, 1000
344 DS(N_("Which header fields have to be retained with \"forward\"")) },
345 { "unfwdignore", &c_unfwdignore, (M | RAWLIST), 0, 1000
346 DS(N_("Un\"fwdignore\" <header-fields>")) },
347 { "unfwdretain", &c_unfwdretain, (M | RAWLIST), 0, 1000
348 DS(N_("Un\"fwdretain\" <header-fields>")) },
349 { "mimetype", &c_mimetype, (M | RAWLIST), 0, 1000
350 DS(N_("(Load and) show all known MIME types or define some")) },
351 { "unmimetype", &c_unmimetype, (M | RAWLIST), 1, 1000
352 DS(N_("Delete <type>s (\"reset\", \"*\" for all; former reinit.s)")) },
353 { "spamrate", &c_spam_rate, (A | M | I | MSGLIST), 0, 0
354 DS(N_("Rate <message-list> via the spam detector")) },
355 { "spamham", &c_spam_ham, (A | M | I | MSGLIST), 0, 0
356 DS(N_("Teach the spam detector that <message-list> is ham")) },
357 { "spamspam", &c_spam_spam, (A | M | I | MSGLIST), 0, 0
358 DS(N_("Teach the spam detector that <message-list> is spam")) },
359 { "spamforget", &c_spam_forget, (A | M | I | MSGLIST), 0, 0
360 DS(N_("Force the spam detector to \"unlearn\" <message-list>")) },
361 { "spamset", &c_spam_set, (A | M | I | MSGLIST), 0, 0
362 DS(N_("Set the spam flag for each message in <message-list>")) },
363 { "spamclear", &c_spam_clear, (A | M | I | MSGLIST), 0, 0
364 DS(N_("Clear the spam flag for each message in <message-list>")) },
365 { "ghost", &_c_ghost, (M | RAWLIST), 0, 1000
366 DS(N_("Print or create <ghost> (<command>), or list all ghosts")) },
367 { "unghost", &_c_unghost, (M | RAWLIST), 1, 1000
368 DS(N_("Delete <ghost-list>")) },
369 { "localopts", &c_localopts, (H | M | RAWLIST), 1, 1
370 DS(N_("Inside `define' / `account': insulate modifications? <boolean>"))},
371 { "cwd", &c_cwd, (M | NOLIST), 0, 0
372 DS(N_("Print current working directory (CWD)")) },
373 { "pwd", &c_cwd, (M | NOLIST), 0, 0
374 DS(N_("Print current working directory (CWD)")) },
375 { "varshow", &c_varshow, (M | RAWLIST), 1, 1000
376 DS(N_("Show some informations about the given <variables>")) },
377 { "varedit", &c_varedit, (H | I | M | RAWLIST), 1, 1000
378 DS(N_("Edit the value(s) of (an) variable(s), or create them")) },
379 { "urlencode", &c_urlencode, (H| M | RAWLIST), 1, 1000
380 DS(N_("Encode <string-list> for usage in an URL")) },
381 { "urldecode", &c_urldecode, (H | M | RAWLIST), 1, 1000
382 DS(N_("Decode the URL-encoded <URL-list> into strings")) },
383 { "File", &c_File, (T | M | RAWLIST), 0, 1
384 DS(N_("Open a new mailbox readonly or show the current mailbox")) },
385 { "Folder", &c_File, (T | M | RAWLIST), 0, 1
386 DS(N_("Open a new mailbox readonly or show the current mailbox")) },
387 { "mlist", &c_mlist, (M | RAWLIST), 0, 1000
388 DS(N_("Show all known mailing lists or define some")) },
389 { "unmlist", &c_unmlist, (M | RAWLIST), 1, 1000
390 DS(N_("Un\"mlist\" <name-list> (\"*\" for all)")) },
391 { "mlsubscribe", &c_mlsubscribe, (M | RAWLIST), 0, 1000
392 DS(N_("Show all mailing list subscriptions or define some")) },
393 { "unmlsubscribe", &c_unmlsubscribe, (M | RAWLIST), 1, 1000
394 DS(N_("Un\"mlsubscribe\" <name-list> (\"*\" for all)"))},
395 { "Lreply", &c_Lreply, (A | R | I | MSGLIST), 0, MMNDEL
396 DS(N_("Mailing-list reply to the given message")) },
397 { "errors", &c_errors, (H | I | RAWLIST), 0, 1
398 DS(N_("Either <show> (default) or <clear> the error message ring")) },
399 { "features", &_c_features, (H | M | NOLIST), 0, 0
400 DS(N_("Show features that are compiled into the MUA")) },
401 { "version", &_c_version, (H | M | NOLIST), 0, 0
402 DS(N_("Print the MUA version")) },
403 #ifdef HAVE_HISTORY
404 { "history", &c_history, (H | I | M | V | RAWLIST), 0, 1
405 DS(N_("<show> (default), <clear> or select <NO> from editor history")) },
406 #endif
407 #ifdef HAVE_NETRC
408 { "netrc", &c_netrc, (M | RAWLIST), 0, 1
409 DS(N_("Either <show> (default) or <clear> the .netrc cache")) },
410 #endif
411 #ifdef HAVE_DEBUG
412 { "sstats", &c_sstats, (H | I | M | NOLIST), 0, 0
413 DS(N_("Print statistics about the auto-reclaimed string store")) },
414 { "smemtrace", &c_smemtrace, (H | I | M | NOLIST), 0, 0
415 DS(N_("Trace current memory usage afap")) },
416 #endif
417 { NULL, NULL, 0, 0, 0 DS("") }
419 #undef DS
421 #undef MSGLIST
422 #undef STRLIST
423 #undef RAWLIST
424 #undef NOLIST
425 #undef NDMLIST
426 #undef ECHOLIST
427 #undef ARG_ARGMASK
428 #undef A
429 #undef F
430 #undef H
431 #undef I
432 #undef M
433 #undef P
434 #undef R
435 #undef T
436 #undef V
437 #undef W
438 #undef O
440 /* s-it-mode */