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