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